From acfeac2032fc60c2f3111152957d2e2222f3cbaa Mon Sep 17 00:00:00 2001 From: David Sancho Moreno Date: Tue, 19 Nov 2024 11:37:48 +0100 Subject: [PATCH] Turn useState initializer as a uncurried fn --- src/React.re | 2 +- src/React.rei | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/React.re b/src/React.re index ba02b4222..f34c89e67 100644 --- a/src/React.re +++ b/src/React.re @@ -479,7 +479,7 @@ type callbackAsync('input, 'output) = 'input => Js.Promise.t('output); */ [@mel.module "react"] external useState: - ([@mel.uncurry] (unit => 'state)) => ('state, ('state => 'state) => unit) = + (unit => 'state) => ('state, (. ('state => 'state)) => unit) = "useState"; [@mel.module "react"] diff --git a/src/React.rei b/src/React.rei index 372337618..813ff77ba 100644 --- a/src/React.rei +++ b/src/React.rei @@ -167,7 +167,7 @@ module Suspense: { */ [@mel.module "react"] external useState: - ([@mel.uncurry] (unit => 'state)) => ('state, ('state => 'state) => unit) = + (unit => 'state) => ('state, (. ('state => 'state)) => unit) = "useState"; [@mel.module "react"]