(instanceId)
| 318 | } |
| 319 | |
| 320 | const 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 | |
| 332 | devToolsEnhancer.updateStore = (newStore, instanceId) => { |
| 333 | console.warn( |