0% found this document useful (0 votes)
125 views2 pages

Don't Use Async Redux Middleware PDF

The document discusses why async Redux middleware should not be used. It notes that Redux makes synchronous state updates explicit and reasonable. While async middleware like Redux Thunk and Redux Saga allow asynchronous logic, they also make the code more complex and less transparent by scattering logic throughout action creators, sagas, and reducers. For these reasons, the document recommends not using async middleware and instead dispatching promises or observables directly from components.

Uploaded by

Cristhian Cruz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
125 views2 pages

Don't Use Async Redux Middleware PDF

The document discusses why async Redux middleware should not be used. It notes that Redux makes synchronous state updates explicit and reasonable. While async middleware like Redux Thunk and Redux Saga allow asynchronous logic, they also make the code more complex and less transparent by scattering logic throughout action creators, sagas, and reducers. For these reasons, the document recommends not using async middleware and instead dispatching promises or observables directly from components.

Uploaded by

Cristhian Cruz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Don’t use async Redux middleware

Christian Chown Follow


Aug 23, 2019 · 5 min read

Redux may not be fashionable right now, but when I need to show React off to
new developers, I usually start by showing them Redux dev tools (“I can see the
state of my app while it’s running! Check this out, time travel debugging! Cool,
huh?”)

Redux makes synchronous state updates explicit and reasonable, and makes
visible the contract between React and the application: UI is a function of state,
and it’s…
You’ve reached the end of your free member preview for this
month. Upgrade for unlimited access.

Upgrade

Redux React Redux Thunk Redux Saga Redux Observable

About Help Legal

You might also like