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 // a lone plugin automatically.
187 let layout = existingState?.layout ?? null
188
189 const shouldFillWithDefaultOpenPlugins =
190 flattenTabs(layout).length === 0 && pluginsWithIds.length > 0
191 if (shouldFillWithDefaultOpenPlugins) {
192 layout = singleGroup(getDefaultActivePlugins(pluginsWithIds))
193 }
194
195 const state: DevtoolsStore = {
196 ...initialState,
197 plugins: pluginsWithIds,
198 state: {
199 ...initialState.state,
200 ...existingState,
201 layout,

Callers

nothing calls this directly

Calls 1

generatePluginIdFunction · 0.85

Tested by

no test coverage detected