Skip to content

Commit 361449a

Browse files
committed
Fix useSyncExternalStore bindings for ReScript 11 uncurried mode
1 parent cf95eb9 commit 361449a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/React.res

+2-2
Original file line numberDiff line numberDiff line change
@@ -401,13 +401,13 @@ external useInsertionEffect7: (
401401

402402
@module("react")
403403
external useSyncExternalStore: (
404-
~subscribe: @uncurry (unit => unit, . unit) => unit,
404+
~subscribe: @uncurry ((unit => unit) => (. unit) => unit),
405405
~getSnapshot: @uncurry unit => 'state,
406406
) => 'state = "useSyncExternalStore"
407407

408408
@module("react")
409409
external useSyncExternalStoreWithServerSnapshot: (
410-
~subscribe: @uncurry (unit => unit, . unit) => unit,
410+
~subscribe: @uncurry ((unit => unit) => (. unit) => unit),
411411
~getSnapshot: @uncurry unit => 'state,
412412
~getServerSnapshot: @uncurry unit => 'state,
413413
) => 'state = "useSyncExternalStore"

0 commit comments

Comments
 (0)