Skip to content

Commit

Permalink
Fix @uncurry usage (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
cknitt authored May 25, 2024
1 parent 6c4b9c6 commit 733447c
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 733447c

Please sign in to comment.