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

Function createTheme

packages/devtools/src/context/use-devtools-context.ts:22–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20}
21
22export 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), {

Callers 3

DevToolsFunction · 0.90
createStylesFunction · 0.90
PluginsTabFunction · 0.90

Calls 2

createDevtoolsSettingsFunction · 0.85
setSettingsFunction · 0.85

Tested by

no test coverage detected