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

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