MCPcopy Create free account
hub / github.com/byte-fe/react-model / consumerActions

Function consumerActions

src/helper.ts:41–51  ·  view source on GitHub ↗
(
  actions: Actions,
  modelContext: { modelName: string }
)

Source from the content-addressed store, hash-verified

39}
40
41const consumerActions = (
42 actions: Actions,
43 modelContext: { modelName: string }
44) => {
45 const ret: any = {}
46 Object.keys(actions).forEach((key) => {
47 // @ts-ignore
48 ret[key] = consumerAction(actions[key], modelContext)
49 })
50 return ret
51}
52
53const setPartialState = (
54 name: keyof typeof Global['State'],

Callers 3

renderMethod · 0.90
getNewStateFunction · 0.85
getNewStateWithCacheFunction · 0.85

Calls 1

consumerActionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…