MCPcopy Create free account
hub / github.com/churichard/notabase / useCurrentNote

Function useCurrentNote

utils/useCurrentNote.tsx:20–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20export const useCurrentNote = () => {
21 const context = useContext(NoteContext);
22 if (context === undefined) {
23 throw new Error('useCurrentNote must be used within a provider');
24 }
25 return context;
26};

Callers 9

NoteHeaderOptionsMenuFunction · 0.90
PublishMenuFunction · 0.90
NoteHeaderFunction · 0.90
BacklinkNoteBranchFunction · 0.90
BacklinkMatchLeafFunction · 0.90
BacklinksFunction · 0.90
NoteLinkElementFunction · 0.90
BlockRefElementFunction · 0.90
useOnClosePaneFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected