File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -312,9 +312,6 @@ external useImperativeHandle7: (
312312
313313@module ("react" ) external useDeferredValue : 'value => 'value = "useDeferredValue"
314314
315- @module ("react" )
316- external useTransition : unit => (bool , (unit => unit ) => unit ) = "useTransition"
317-
318315@module ("react" )
319316external useInsertionEffectOnEveryRender : (unit => option <unit => unit >) => unit =
320317 "useInsertionEffect"
@@ -406,3 +403,13 @@ external setDisplayName: (component<'props>, string) => unit = "displayName"
406403
407404@get @return (nullable )
408405external displayName : component <'props > => option <string > = "displayName"
406+
407+ // Actions
408+
409+ type transitionFunction = unit => promise <unit >
410+
411+ type transitionStartFunction = transitionFunction => unit
412+
413+ /** `useTransition` is a React Hook that lets you render a part of the UI in the background. */
414+ @module ("react" )
415+ external useTransition : unit => (bool , transitionStartFunction ) = "useTransition"
You can’t perform that action at this time.
0 commit comments