Skip to main content

Thunk

aka Thunks

References

  1. redux-thunkredux sub-library to Thunk Redux Middleware for redux for logic to interact with Dispatch & getState() - to delay dispatch for action until condition met . extends redux actions to return functions that can be executed by thunk middleware, allows side-effects such as async api calls.

  2. @reduxjs/toolkit/queryRTK query API to Data Fetch/Cache & replace Thunk