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

Function preEnhancer

app/worker/reduxAPI.js:320–330  ·  view source on GitHub ↗
(instanceId)

Source from the content-addressed store, hash-verified

318}
319
320const preEnhancer = (instanceId) => (next) => (reducer, initialState, enhancer) => {
321 const store = next(reducer, initialState, enhancer)
322
323 if (instances[instanceId]) {
324 instances[instanceId].store = store
325 }
326 return {
327 ...store,
328 dispatch: (action) => (locked ? action : store.dispatch(action)),
329 }
330}
331
332devToolsEnhancer.updateStore = (newStore, instanceId) => {
333 console.warn(

Callers 1

composeFunction · 0.85

Calls 1

nextFunction · 0.85

Tested by

no test coverage detected