MCPcopy Index your code
hub / github.com/TanStack/devtools / createDrawContext

Function createDrawContext

packages/devtools/src/context/draw-context.tsx:59–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57}
58
59export function createDrawContext() {
60 const context = getContext(DrawContext)
61
62 if (context === undefined) {
63 throw new Error(
64 `createDrawContext must be used within a DrawClientProvider`,
65 )
66 }
67
68 return context
69}

Callers 3

TabsFunction · 0.90
PluginsTabFunction · 0.90
createPluginsFunction · 0.85

Calls 1

getContextFunction · 0.85

Tested by

no test coverage detected