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 const theme = createMemo(() => settings().theme)
21 return {
22 theme,
23 setTheme: (theme: DevtoolsStore['settings']['theme']) =>
24 setSettings({ theme }),
25 }
26}
27
28export const createPlugins = () => {
29 const { store, setStore } = createDevtoolsContext()
30 const plugins = createMemo(() => store.plugins)
31 /**
32 * Derived, never stored. The layout tree is the only record of what is open,
33 * so this cannot drift out of step with it.

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