Skip to content

Commit

Permalink
Fix @uncurry usage
Browse files Browse the repository at this point in the history
  • Loading branch information
cknitt committed May 25, 2024
1 parent bc0d138 commit 96f4739
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/React.res
Original file line number Diff line number Diff line change
Expand Up @@ -394,14 +394,14 @@ external useInsertionEffect7: (
@module("react")
external useSyncExternalStore: (
~subscribe: @uncurry ((unit => unit) => (. unit) => unit),
~getSnapshot: @uncurry unit => 'state,
~getSnapshot: @uncurry (unit => 'state),
) => 'state = "useSyncExternalStore"

@module("react")
external useSyncExternalStoreWithServerSnapshot: (
~subscribe: @uncurry ((unit => unit) => (. unit) => unit),
~getSnapshot: @uncurry unit => 'state,
~getServerSnapshot: @uncurry unit => 'state,
~getSnapshot: @uncurry (unit => 'state),
~getServerSnapshot: @uncurry (unit => 'state),
) => 'state = "useSyncExternalStore"

module Uncurried = {
Expand Down

0 comments on commit 96f4739

Please sign in to comment.