MCPcopy Index your code
hub / github.com/atomicdata-dev/atomic-data-browser / handleNotify

Function handleNotify

react/src/hooks.ts:60–63  ·  view source on GitHub ↗
(updated: Resource)

Source from the content-addressed store, hash-verified

58 // When a component mounts, it needs to let the store know that it will subscribe to changes to that resource.
59 useEffect(() => {
60 function handleNotify(updated: Resource) {
61 // When a change happens, set the new Resource.
62 setResource(updated);
63 }
64 subject && store.subscribe(subject, handleNotify);
65
66 return () => {

Callers

nothing calls this directly

Calls 2

setMethod · 0.80
getSubjectMethod · 0.80

Tested by

no test coverage detected