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

Function usePopperContext

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

Source from the content-addressed store, hash-verified

39const PopperContenxt = React.createContext<PopperContextValue>(null as any)
40
41const usePopperContext = () => {
42 const context = React.useContext(PopperContenxt)
43 if (!context)
44 throw new Error(`[usePopperContext] must be used within a ${POPPER_NAME} component.`)
45
46 return context
47}
48
49interface PopperProps {
50 children?: React.ReactNode

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…