Omnistac / zedux

:zap: A Molecular State Engine for React
https://Omnistac.github.io/zedux/
MIT License
376 stars 7 forks source link

feat(react): wrap scheduler run in try...finally; add handling for destroyed instances #21

Closed bowheart closed 1 year ago

bowheart commented 1 year ago

Description

We can be a little more robust when we hit a fatal error. Make the scheduler not hang forever in a running-but-not-running state. Also make ecosystem.getInstance() find/create the new, non-Destroyed instance when a Destroyed instance is passed.