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

Function usePositionContext

packages/ui/src/popper.tsx:152–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150})
151
152const usePositionContext = () => {
153 const context = React.useContext(PositionContext)
154 if (!context)
155 throw new Error(`[usePositionContext] must be used within a ${CONTENT_NAME} component.`)
156 return context
157}
158
159type Boundary = Element | null
160

Callers 1

popper.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…