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

Function useEditable

packages/editor/src/hooks/use-editable.tsx:47–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 * @returns
46 */
47export const useEditable = (): Editable => {
48 const store = useEditableStore()
49
50 return useStore(store, state => {
51 return state.editor
52 })[0]
53}

Callers 3

ChildrenFunction · 0.90
AlignDropdownFunction · 0.90

Calls 1

useEditableStoreFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…