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

You Might Also Like
Red Hat Ansible Automation Platform on Microsoft Azure Icon
Red Hat Ansible Automation Platform on Microsoft Azure

Red Hat Ansible Automation Platform on Azure allows you to quickly deploy, automate, and manage resources securely and at scale.

Deploy Red Hat Ansible Automation Platform on Microsoft Azure for a strategic automation solution that allows you to orchestrate, govern and operationalize your Azure environment.
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