(newPlugins: Array<TanStackDevtoolsPlugin>)
| 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, |
nothing calls this directly
no test coverage detected