https://github.com/serengia/redux-side-effects-method-2
This project demonstrates/shows an example of how to handle Redux-side-effects with redux custom action creators via the use of Thunks.
https://github.com/serengia/redux-side-effects-method-2
firebase react redux
Last synced: about 2 months ago
JSON representation
This project demonstrates/shows an example of how to handle Redux-side-effects with redux custom action creators via the use of Thunks.
- Host: GitHub
- URL: https://github.com/serengia/redux-side-effects-method-2
- Owner: serengia
- Created: 2022-09-24T05:50:56.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-24T08:41:28.000Z (almost 4 years ago)
- Last Synced: 2025-09-04T19:52:12.508Z (10 months ago)
- Topics: firebase, react, redux
- Language: JavaScript
- Homepage:
- Size: 397 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Redux- Side Effects - Method-2 (Handling Redux Side Effects in using Thunks)
This project demonstrates/shows an example of how to handle **Redux-side-effects** with **redux custom action creators** via the use of **Thunks.**
> _REMEMBER:_ Redux-reducers must be pure, i.e. You can't run side effects generating tasks such as making **HTTP Requests** and **saving/fetching staff to your local storage** inside redux reducers. To run side-effects generating tasks in redux, you can do that in regular react components(of course using **useEffects()** hook) or use **redux custom action creators** via the use of **Thunks** -- something we are doing in this project.
## Running the project
CD into the project directory and run the following command:
```
npm install
```
To use the backend, (and if you have time) you can create your own simple **API endpoints** and replace the **HTTP Requests links** on this project with your own. Alternatively, you can quickly get a **Firebase real-time-database test-link** and use that instead.
👤 **Author**
- GitHub: [@githubhandle](https://github.com/serengia)
- Website: [James Serengia](https://jamesserengia.com/)
- Twitter: [@twitterhandle](https://twitter.com/jamesserengia)
- LinkedIn: [LinkedIn](https://linkedin.com/in/james-serengia)
## 🤝 Contributing
Contributions, issues, and feature requests are welcome!
## Show your support
Give a ⭐️ if you like this project!
## Acknowledgments
- Hat tip to anyone who inspired this project