We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
startTransition
1 parent f49a463 commit a9c7bb1Copy full SHA for a9c7bb1
src/React.res
@@ -417,6 +417,12 @@ type transitionStartFunction = transitionFunction => unit
417
type transitionFunctionAsync = unit => promise<unit>
418
type transitionStartFunctionAsync = transitionFunctionAsync => unit
419
420
+/** `startTransition` lets you render a part of the UI in the background. */
421
+@module("react")
422
+external startTransition: transitionStartFunction = "startTransition"
423
424
+external startTransitionAsync: transitionStartFunctionAsync = "startTransition"
425
+
426
/** `useTransition` is a React Hook that lets you render a part of the UI in the background. */
427
@module("react")
428
external useTransition: unit => (bool, transitionStartFunction) = "useTransition"
0 commit comments