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

Function useDragStore

packages/editor/src/hooks/use-drag.ts:6–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import { useStore } from 'zustand'
5
6export const useDragStore = () => {
7 const editor = useEditableStatic()
8 const store = React.useMemo(() => {
9 return Drag.getStore(editor)
10 }, [editor])
11 return store
12}
13
14/**
15 * 是否拖拽中

Callers 5

useDraggingFunction · 0.85
useDragTypeFunction · 0.85
useDragToFunction · 0.85
useDragPositionFunction · 0.85
useDragDataFunction · 0.85

Calls 1

useEditableStaticFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…