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

Function changeCountDelay

packages/dva-core/test/effects.test.js:76–79  ·  view source on GitHub ↗
({ payload }, { put, call })

Source from the content-addressed store, hash-verified

74 },
75 effects: {
76 *changeCountDelay({ payload }, { put, call }) {
77 yield call(delay, 200);
78 yield put({ type: 'dump', payload: { count: payload } });
79 },
80 *process({ payload }, { put, select }) {
81 yield put.resolve({ type: 'changeCountDelay', payload });
82 const count = yield select(state => state.counter.count);

Callers

nothing calls this directly

Calls 1

putFunction · 0.85

Tested by

no test coverage detected