🍾 Redux Custom Service Usage
- Everything already setup for redux usage
- Zero configuration, but configurable if needed
- If you want to change / learn something about the redux configuration please check the Redux Service
- There is a basic example which is
User
- Create your own redux reducer for each of them: UserReducers
- Write your own redux usage service: UserService
- Set a data to redux via User Service: User Redux Set Example
UserService.setUserData(mockUserData);
- Fetch a data with
react-redux
'suseSelector
hook User Redux Fetch Data
const userData = useSelector(
(state: MainState) => state.user.userData as IUser,
);
Of course, you can change the whole Redux usage structure. This one is just an example 👊