MCPcopy Create free account
hub / github.com/EsperoTech/yaade / patchData

Function patchData

client/src/state/currentCollection.tsx:59–69  ·  view source on GitHub ↗
(state: CurrentCollection | undefined, data: any)

Source from the content-addressed store, hash-verified

57}
58
59function patchData(state: CurrentCollection | undefined, data: any) {
60 if (!state) return state;
61 return {
62 ...state,
63 data: {
64 ...state.data,
65 ...data,
66 },
67 isChanged: true,
68 };
69}
70
71type CurrentCollectionAction =
72 | SetAction

Callers 1

currentCollectionReducerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected