* Resets the singleton instance. Useful for testing.
()
| 208 | if (SequenceManager.#instance) { |
| 209 | SequenceManager.#instance.destroy() |
| 210 | SequenceManager.#instance = null |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | #syncRegistrationView(registration: SequenceRegistration): void { |
| 215 | this.registrations.setState((prev) => |
| 216 | new Map(prev).set(registration.id, toRegistrationView(registration)), |
| 217 | ) |
| 218 | } |