MCPcopy Create free account
hub / github.com/editablejs/editable / useLinkStore

Function useLinkStore

packages/plugins/link/src/store/index.ts:38–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36}
37
38export const useLinkStore = () => {
39 const editor = useEditableStatic()
40 return React.useMemo(() => getStore(editor), [editor])
41}
42
43export const useLinkOpen = (): [boolean, (open: boolean) => void] => {
44 const store = useLinkStore()

Callers 1

useLinkOpenFunction · 0.85

Calls 2

useEditableStaticFunction · 0.90
getStoreFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…