getState()
References
redux-thunk↔reduxsub-library to Thunk Redux Middleware forreduxfor 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.