Orbit
Jan 23, 2022
Orbit is a redux middleware that allows you to subscribe to effects based on action, and it works like a redux-thunk for the effects that pass to the createState() function. Orbit makes it fun to use Redux, Actions and Side Effects. Demo Git
Installation
Add the Orbit, Redux and React-Redux packages to your project:
Create a Redux State, Reducer and effects on it
Create a Redux Store
Provide the Redux Store to React
Use Redux State and Actions and Orbit Effects in React Components
Develop an action specific selector
useSelectorByAcions() — a hook to select state for specific action/actions. unlike useSelector() that call selector function each and every time for any part of state changed.