(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 | interface Toast extends Omit<ToasterToast, "id"> {} |
| 139 |