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

Function useStore

react/src/hooks.ts:446–455  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

444
445/** Preffered way of using the store in a Component or Hook */
446export function useStore(): Store {
447 const store = React.useContext(StoreContext);
448
449 if (store == undefined) {
450 throw new Error(
451 'Store is not found in react context. Have you wrapped your application in `<StoreContext.Provider value={new Store}>`?',
452 );
453 }
454 return store;
455}
456
457/**
458 * Checks if the Agent has the appropriate rights to edit this resource. If you

Callers 15

useBaseURLFunction · 0.90
useCurrentAgentFunction · 0.90
useServerSearchFunction · 0.90
NewIntanceButtonFunction · 0.90
InviteFormFunction · 0.90
ResourceContextMenuFunction · 0.90
UploadFormFunction · 0.90
UploadWrapperFunction · 0.90
ValueFormFunction · 0.90
ResourceSelectorFunction · 0.90
ResourceFormFunction · 0.90
ShareRouteFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected