(instance)
| 196 | } |
| 197 | |
| 198 | function start(instance) { |
| 199 | if (!listenerAdded) { |
| 200 | self.addEventListener('message', (message) => { |
| 201 | const { method, content } = message.data |
| 202 | if (method === 'emitReduxMessage') { |
| 203 | handleMessages(content) |
| 204 | } |
| 205 | }) |
| 206 | listenerAdded = true |
| 207 | } |
| 208 | const { store, actionCreators, filters } = instance |
| 209 | if (typeof actionCreators === 'function') { |
| 210 | instance.actionCreators = actionCreators() |
| 211 | } |
| 212 | relay('STATE', getLiftedState(store, filters), instance) |
| 213 | } |
| 214 | |
| 215 | function checkForReducerErrors(liftedState, instance) { |
| 216 | if (liftedState.computedStates[liftedState.currentStateIndex].error) { |
no test coverage detected