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

Function updatePlugins

packages/devtools/src/context/devtools-context.tsx:188–198  ·  view source on GitHub ↗
(newPlugins: Array<TanStackDevtoolsPlugin>)

Source from the content-addressed store, hash-verified

186 ...plugin,
187 id,
188 }
189 }) || []
190
191 // If nothing was open, seed from plugins with defaultOpen: true, or activate
192 // a lone plugin automatically.
193 let layout = existingState?.layout ?? null
194
195 const shouldFillWithDefaultOpenPlugins =
196 flattenTabs(layout).length === 0 && pluginsWithIds.length > 0
197 if (shouldFillWithDefaultOpenPlugins) {
198 layout = singleGroup(getDefaultActivePlugins(pluginsWithIds))
199 }
200
201 const state: DevtoolsStore = {

Callers

nothing calls this directly

Calls 1

generatePluginIdFunction · 0.85

Tested by

no test coverage detected