MCPcopy Create free account
hub / github.com/Roy3838/Observer / setState

Function setState

app/src/utils/pullModelManager.ts:39–42  ·  view source on GitHub ↗
(newState: Partial<PullState>)

Source from the content-addressed store, hash-verified

37};
38
39const setState = (newState: Partial<PullState>) => {
40 state = { ...state, ...newState };
41 broadcast();
42};
43
44const resetState = () => {
45 setState({

Callers 3

resetStateFunction · 0.85
pullModelFunction · 0.85
useTranscriptionStateFunction · 0.85

Calls 1

broadcastFunction · 0.85

Tested by

no test coverage detected