MCPcopy Index your code
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 const { store, setStore } = createDevtoolsContext()
78 const state = createMemo(() => store.state)
79 const setState = (newState: Partial<DevtoolsStore['state']>) => {
80 setStore((prev) => ({
81 ...prev,
82 state: {
83 ...prev.state,
84 ...newState,
85 },
86 }))
87 }
88 return { state, setState }
89}
90

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