What is Redux Thunk?

Technology CommunityCategory: ReduxWhat is Redux Thunk?
VietMX Staff asked 3 years ago

Redux Thunk middleware allows you to write action creators that return a function instead of an action. The thunk can be used to delay the dispatch of an action, or to dispatch only if a certain condition is met. The inner function receives the store methods dispatch and getState() as parameters.