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

Function useContentContext

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

Source from the content-addressed store, hash-verified

132const PopperContentContext = React.createContext<PopperContentContextValue>({} as any)
133
134const useContentContext = () => {
135 const context = React.useContext(PopperContentContext)
136 if (!context)
137 throw new Error(`[usePopperContentContext] must be used within a ${CONTENT_NAME} component.`)
138
139 return context
140}
141
142type PositionContextValue = {
143 hasParent: false

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…