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

Function assertAction

packages/dva-core/src/getSaga.js:93–101  ·  view source on GitHub ↗
(type, name)

Source from the content-addressed store, hash-verified

91
92function createEffects(model) {
93 function assertAction(type, name) {
94 invariant(type, 'dispatch: action should be a plain Object with type');
95 warning(
96 type.indexOf(`${model.namespace}${NAMESPACE_SEP}`) !== 0,
97 `[${name}] ${type} should not be prefixed with namespace ${
98 model.namespace
99 }`
100 );
101 }
102 function put(action) {
103 const { type } = action;
104 assertAction(type, 'sagaEffects.put');

Callers 3

putFunction · 0.85
putResolveFunction · 0.85
takeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected