Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Serverless Web Applications with React and Firebase

You're reading from   Serverless Web Applications with React and Firebase Develop real-time applications for web and mobile platforms

Arrow left icon
Product type Paperback
Published in Apr 2018
Publisher Packt
ISBN-13 9781788477413
Length 284 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Harmeet Singh Harmeet Singh
Author Profile Icon Harmeet Singh
Harmeet Singh
Mayur Tanna Mayur Tanna
Author Profile Icon Mayur Tanna
Mayur Tanna
Arrow right icon
View More author details
Toc

Advanced topics in Redux

Once you are through the basics, there are some advanced topics to go through, such as React Router, Ajax and Async Actions, and Middleware. We will not cover them here since they are out of the scope of this book. However, we will just look at the important topic of Middleware in brief.

By default, Redux supports synchronous data flow only. To have asynchronous data flow, you will need to use Middleware. Middleware is nothing but a framework or library that provides a wrapper for your dispatch method and allows to pass functions and promises rather than just actions. Middleware is being used to mainly support asynchronous actions. There are many middlewares out there, such as redux-thunk for asynchronous actions. Middlewares are also useful for logging or crash reporting. We will also use redux-thunk in our application. To enhance createStore(), we need...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image