Redux Thunk is Thunk middleware for Redux. With basic Redux, only simple synchronous updates can be done by dispatching an action. By adding middleware, you extend the Redux store's abilities, enabling you to write async logic that interacts with the store.

A thunk is a function that wraps an expression in order to delay its evaluation. Redux Thunk middleware allows you to write action creators that, rather than return an action will return a function instead. If you want to delay the dispatch of an action, or to dispatch only after meeting a certain condition, then the thunk can be used.

Thunks are ideal middleware for a number of cases, in particular for basic Redux side effects logic, complex synchronous logic that must access the store, and simple async logic like AJAX requests.

Features

  • Customizes dispatch function
  • Supports injecting a custom argument

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

MIT License

Follow Redux Thunk

Redux Thunk Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Redux Thunk!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

JavaScript, TypeScript

Related Categories

JavaScript Frameworks, TypeScript Frameworks

Registered

2020-11-12