MCPcopy Create free account
hub / github.com/TanStack/devtools / generatePluginId

Function generatePluginId

packages/devtools/src/context/devtools-context.tsx:99–110  ·  view source on GitHub ↗
(plugin: TanStackDevtoolsPlugin, index: number)

Source from the content-addressed store, hash-verified

97 * Where the Plugins strip hands a drag over to the workspace.
98 *
99 * A mutable holder on the context rather than a module-level variable: this
100 * package ships several bundles, so two components can end up holding different
101 * copies of the same module and never see each other's writes. The context is
102 * the one thing they are guaranteed to share.
103 *
104 * A direct call, not a signal — an effect reacting to a signal runs a microtask
105 * later and every pointer move until then is lost.
106 */
107 paneDragBridge: {
108 handler:
109 | ((pluginId: string, point: { x: number; y: number }) => void)
110 | null
111 }
112}>()
113

Callers 3

getStateFromLocalStorageFunction · 0.85
updatePluginsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected