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

Function useViewerStore

packages/plugins/image/src/hooks/use-viewer-store.ts:5–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { getViewerStore } from '../store'
4
5export const useViewerStore = () => {
6 const editor = useEditableStatic()
7 const store = useMemo(() => getViewerStore(editor), [editor])
8 return store
9}

Callers 2

useViewerVisibleFunction · 0.90
useViewerIndexFunction · 0.90

Calls 2

useEditableStaticFunction · 0.90
getViewerStoreFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…