-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Love the tutorial. However I've been looking around for how to handle side effects properly with reducer components and can't find much information. A scenario being if we had a button that loaded the next page. In js react land you might trigger an action that does a side effect that optionally does a state changes along the way.
The flow would be
- dispatch action
- reducer doesn't do anthing with action (NoUpdate)
- Middleware handles the action allowing for more actions to be dispatched and side effects to fetch data or do some other work
Tools that promote this pattern:
-https://github.com/redux-saga/redux-saga
-https://github.com/redux-observable/redux-observable
How would you handle doing a side effect from an event, like the click load more example above?
cogell and digitake
Metadata
Metadata
Assignees
Labels
No labels