Store (Redux)
MiniRx Store offers the Redux API for advanced state management.
Redux Pattern
The Redux Pattern is based on these key principles:
- Single source of truth: The store holds the global application state
- State is read-only and is only changed by dispatching actions
- Changes are made using pure functions called reducers
What's Included
The MiniRx Redux Store comes with these APIs:
configureStore()
setup reducers and extensions and return the Store instancefeature()
add feature state reducers dynamicallydispatch()
dispatch an actionselect()
select state from the global state object as RxJS ObservablecreateFeatureStateSelector
andcreateSelector
to create memoized selectorseffect()
register an effect to isolate and handle side effectsmapResponse()
handle side effect response in effects