MCPcopy
hub / github.com/pmndrs/zustand / setStateFromDevtools

Function setStateFromDevtools

src/middleware/devtools.ts:259–264  ·  view source on GitHub ↗
(...a)

Source from the content-addressed store, hash-verified

257 }
258
259 const setStateFromDevtools: StoreApi<S>['setState'] = (...a) => {
260 const originalIsRecording = isRecording
261 isRecording = false
262 set(...(a as Parameters<typeof set>))
263 isRecording = originalIsRecording
264 }
265
266 const initialState = fn(api.setState, get, api)
267 if (connectionInformation.type === 'untracked') {

Callers 1

devtoolsImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…