MCPcopy
hub / github.com/dvajs/dva / add

Function add

packages/dva-core/test/effects.test.js:13–15  ·  view source on GitHub ↗
(state, { payload })

Source from the content-addressed store, hash-verified

11 state: 0,
12 reducers: {
13 add(state, { payload }) {
14 return state + payload || 1;
15 },
16 },
17 effects: {
18 *addDelay({ payload }, { put, call }) {

Callers

nothing calls this directly

Calls 1

putFunction · 0.85

Tested by

no test coverage detected