MCPcopy
hub / github.com/facebook/react / useTransition

Function useTransition

packages/react/src/ReactHooks.js:170–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168}
169
170export function useTransition(): [
171 boolean,
172 (callback: () => void, options?: StartTransitionOptions) => void,
173] {
174 const dispatcher = resolveDispatcher();
175 return dispatcher.useTransition();
176}
177
178export function useDeferredValue<T>(value: T, initialValue?: T): T {
179 const dispatcher = resolveDispatcher();

Callers 2

useFooFunction · 0.90
ComponentFunction · 0.50

Calls 1

resolveDispatcherFunction · 0.70

Tested by 2

useFooFunction · 0.72
ComponentFunction · 0.40