MCPcopy Index your code
hub / github.com/learnapollo/learnapollo / update

Function update

src/utils/statestore.ts:33–37  ·  view source on GitHub ↗
(keyPath: string[], value: any)

Source from the content-addressed store, hash-verified

31}
32
33export function update(keyPath: string[], value: any): StoredState {
34 state = Immutable.fromJS(state).setIn(keyPath, value).toJS() as StoredState
35 window.localStorage.setItem('learnapollo_state', JSON.stringify(state))
36 return state
37}

Callers 2

constructorMethod · 0.90
AppClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected