(type, name)
| 91 | |
| 92 | function 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'); |
no outgoing calls
no test coverage detected