Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
3
import
{ getViewer } from
'../create-viewer'
4
5
export
const
useViewer = () => {
6
const
editor = useEditableStatic()
7
8
return
useMemo(() => getViewer(editor), [editor])
9
}
Callers
2
image.tsx
File · 0.90
viewer.tsx
File · 0.90
Calls
2
useEditableStatic
Function · 0.90
getViewer
Function · 0.90
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…