Experimental state management framework for native Reason
isolinear is a Redux and Elm Architecture inspired framework.
It provides a functor for creating an application model, and updating the model. Like Elm, Updates specify both a way to update the state, and side effects.
- Why a central store, if you have
useReducerhook anyway?
Having a centralized model, external to the UI, allows for some powerful capabilities:
- Model updates, if the store is immutable, can be run in parallel to the UI (in a separate OS thread)
- Model can be tested completely independently of the UI