From 733447c429c6856a96fe4f5b0d9deff3b6f89313 Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Sat, 25 May 2024 15:50:10 +0200 Subject: [PATCH] Fix @uncurry usage (#114) --- src/React.res | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/React.res b/src/React.res index 5915094..0da49ad 100644 --- a/src/React.res +++ b/src/React.res @@ -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 = {