Skip to content

Commit 733447c

Browse files
authored
Fix @uncurry usage (#114)
1 parent 6c4b9c6 commit 733447c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/React.res

+3-3
Original file line numberDiff line numberDiff line change
@@ -394,14 +394,14 @@ external useInsertionEffect7: (
394394
@module("react")
395395
external useSyncExternalStore: (
396396
~subscribe: @uncurry ((unit => unit) => (. unit) => unit),
397-
~getSnapshot: @uncurry unit => 'state,
397+
~getSnapshot: @uncurry (unit => 'state),
398398
) => 'state = "useSyncExternalStore"
399399

400400
@module("react")
401401
external useSyncExternalStoreWithServerSnapshot: (
402402
~subscribe: @uncurry ((unit => unit) => (. unit) => unit),
403-
~getSnapshot: @uncurry unit => 'state,
404-
~getServerSnapshot: @uncurry unit => 'state,
403+
~getSnapshot: @uncurry (unit => 'state),
404+
~getServerSnapshot: @uncurry (unit => 'state),
405405
) => 'state = "useSyncExternalStore"
406406

407407
module Uncurried = {

0 commit comments

Comments
 (0)