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

Function useViewer

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

Source from the content-addressed store, hash-verified

3import { getViewer } from '../create-viewer'
4
5export const useViewer = () => {
6 const editor = useEditableStatic()
7
8 return useMemo(() => getViewer(editor), [editor])
9}

Callers 2

image.tsxFile · 0.90
viewer.tsxFile · 0.90

Calls 2

useEditableStaticFunction · 0.90
getViewerFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…