Problem Statement
What does redux-thunk middleware allow you to dispatch?
Explanation
Redux-thunk middleware allows you to dispatch functions (thunks) instead of plain action objects, where these functions receive dispatch and getState as arguments and can contain async logic or conditional dispatching. This enables you to write action creators that return functions which can perform side effects like API calls, dispatch multiple actions sequentially, or dispatch actions conditionally based on current state. Thunks are the simplest and most common way to handle async logic in Redux applications.
