MCPcopy Create free account
hub / github.com/jhen0409/react-native-debugger / start

Function start

app/worker/reduxAPI.js:198–213  ·  view source on GitHub ↗
(instance)

Source from the content-addressed store, hash-verified

196}
197
198function 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
215function checkForReducerErrors(liftedState, instance) {
216 if (liftedState.computedStates[liftedState.currentStateIndex].error) {

Callers 1

devToolsEnhancerFunction · 0.70

Calls 3

relayFunction · 0.85
getLiftedStateFunction · 0.85
handleMessagesFunction · 0.70

Tested by

no test coverage detected