Before turning again our attention to Redux Toolkit let's see how to make API calls from a middleware to replace redux-thunk. In the process you'll also learn to use AbortController to cancel a Fetch call.
----------------
The Little JavaScript Book: https://leanpub.com/little-javascript/
----------------
Follow me on:
https://www.valentinog.com/blog/
https://fosstodon.org/web/@gagliardi_...
https://t.me/valentinoga
/ gagliardi_vale
#javascript #redux #middleware