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

Function Updater

packages/react-reconciler/src/__tests__/ReactAsyncActions-test.js:1257–1265  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1255 async () => {
1256 let startTransition;
1257 function Updater() {
1258 const [isPending, _start] = useTransition();
1259 startTransition = _start;
1260 return (
1261 <span>
1262 <Text text={'Pending: ' + isPending} />
1263 </span>
1264 );
1265 }
1266
1267 let setText;
1268 let setOptimisticText;

Callers

nothing calls this directly

Calls 1

useTransitionFunction · 0.50

Tested by

no test coverage detected