(action: Action)
| 134 | let memoryState: State = { toasts: [] } |
| 135 | |
| 136 | function dispatch(action: Action) { |
| 137 | memoryState = reducer(memoryState, action) |
| 138 | listeners.forEach((listener) => { |
| 139 | listener(memoryState) |
| 140 | }) |
| 141 | } |
| 142 | |
| 143 | type Toast = Omit<ToasterToast, "id"> |
| 144 |
no test coverage detected