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