MCPcopy
hub / github.com/preactjs/preact / A

Function A

compat/test/browser/useSyncExternalStore.test.jsx:409–415  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

407 const store = createExternalStore({ a: 0, b: 0 });
408
409 function A() {
410 const a = useSyncExternalStore(
411 store.subscribe,
412 () => store.getState().a
413 );
414 return <Text text={'A' + a} />;
415 }
416 function B() {
417 const b = useSyncExternalStore(
418 store.subscribe,

Callers

nothing calls this directly

Calls 1

useSyncExternalStoreFunction · 0.90

Tested by

no test coverage detected