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

Function onEffect

packages/dva-core/test/effects.test.js:434–443  ·  view source on GitHub ↗
(effect, { put }, model, key)

Source from the content-addressed store, hash-verified

432 },
433 },
434 onEffect(effect, { put }, model, key) {
435 expectedKey = key;
436 modelNamespace = model.namespace;
437 return function*(...args) {
438 count *= 2;
439 yield put({ type: SHOW });
440 yield effect(...args);
441 yield put({ type: HIDE });
442 };
443 },
444 });
445
446 app.use({

Callers

nothing calls this directly

Calls 1

putFunction · 0.85

Tested by

no test coverage detected