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

Function A

packages/react-reconciler/src/__tests__/useSyncExternalStore-test.js:287–300  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

285 });
286
287 function A() {
288 const value = useSyncExternalStore(store.subscribe, store.getState);
289
290 if (value === 'Updated') {
291 try {
292 use(promise);
293 } catch (x) {
294 Scheduler.log('Suspend A');
295 throw x;
296 }
297 }
298
299 return <Text text={'A: ' + value} />;
300 }
301
302 function B() {
303 const value = useSyncExternalStore(store.subscribe, store.getState);

Callers

nothing calls this directly

Calls 2

useSyncExternalStoreFunction · 0.50
useFunction · 0.50

Tested by

no test coverage detected