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

Function importPayloadFrom

app/worker/reduxAPI.js:128–137  ·  view source on GitHub ↗
(store, state, instance)

Source from the content-addressed store, hash-verified

126}
127
128function importPayloadFrom(store, state, instance) {
129 try {
130 const nextLiftedState = importState(state, instance)
131 if (!nextLiftedState) return
132 store.liftedStore.dispatch({ type: 'IMPORT_STATE', ...nextLiftedState })
133 relay('STATE', getLiftedState(store, instance.filters), instance)
134 } catch (e) {
135 relay('ERROR', e.message, instance)
136 }
137}
138
139function exportState({ id: instanceId, store, serializeState }) {
140 const liftedState = store.liftedStore.getState()

Callers 1

handleMessagesFunction · 0.85

Calls 2

relayFunction · 0.85
getLiftedStateFunction · 0.85

Tested by

no test coverage detected