(action: Action)
| 129 | let memoryState: State = { toasts: [] }; |
| 130 | |
| 131 | function dispatch(action: Action) { |
| 132 | memoryState = reducer(memoryState, action); |
| 133 | listeners.forEach((listener) => { |
| 134 | listener(memoryState); |
| 135 | }); |
| 136 | } |
| 137 | |
| 138 | type Toast = Omit<ToasterToast, 'id'>; |
| 139 |
no test coverage detected
searching dependent graphs…