()
| 20 | } |
| 21 | |
| 22 | export const createPlugins = () => { |
| 23 | const { store, setStore } = createDevtoolsContext() |
| 24 | const plugins = createMemo(() => store.plugins) |
| 25 | /** |
| 26 | * Derived, never stored. The layout tree is the only record of what is open, |
| 27 | * so this cannot drift out of step with it. |
| 28 | * |
| 29 | * Compared by contents, not identity: `flattenTabs` builds a fresh array every |
| 30 | * time, and without this every unrelated store write would look like a change |
| 31 | * and re-run each plugin's `render`. |
| 32 | */ |
| 33 | const activePlugins = createMemo(() => flattenTabs(store.state.layout), { |
no test coverage detected