(store: Store, middleware: { initialized?: boolean })
| 101 | } |
| 102 | |
| 103 | function subscribe(store: Store, middleware: { initialized?: boolean }) { |
| 104 | if (!middleware.initialized) { |
| 105 | const storeUpdate = update.bind(store); |
| 106 | if (devTools.instance) { |
| 107 | devTools.instance.subscribe(storeUpdate); |
| 108 | } |
| 109 | middleware.initialized = true; |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | const devtoolsMiddleware = (store: Store) => (next: Function, args: any) => ( |
| 114 | action: Action |
no test coverage detected