(action: Action)
| 155 | let memoryState: State = { toasts: [] }; |
| 156 | |
| 157 | function dispatch(action: Action) { |
| 158 | memoryState = reducer(memoryState, action); |
| 159 | listeners.forEach((listener) => { |
| 160 | listener(memoryState); |
| 161 | }); |
| 162 | } |
| 163 | |
| 164 | type Toast = Omit<ToasterToast, "id">; |
| 165 |
no test coverage detected
searching dependent graphs…