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

Function setState

packages/devtools/src/context/use-devtools-context.ts:79–87  ·  view source on GitHub ↗
(newState: Partial<DevtoolsStore['state']>)

Source from the content-addressed store, hash-verified

77 ...newState,
78 },
79 }))
80 }
81 return { state, setState }
82}
83
84export const createDevtoolsSettings = () => {
85 const { store, setStore } = createDevtoolsContext()
86 const settings = createMemo(() => store.settings)
87 const setSettings = (newSettings: Partial<DevtoolsStore['settings']>) => {
88 setStore((previous) => ({
89 ...previous,
90 settings: {

Callers 10

TabsFunction · 0.85
tabs.test.tsxFile · 0.85
setPersistOpenFunction · 0.85
setHeightFunction · 0.85
CustomDevtoolPanelFunction · 0.85
DevtoolPanelFunction · 0.85
AppFunction · 0.85
AppFunction · 0.85
CustomDevtoolPanelFunction · 0.85
AppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected