You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
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?
The text was updated successfully, but these errors were encountered: