Redux Toolkit / React Redux
dispatch
Sends an action through the store dispatch chain.
Formal Syntax & Structure
react syntaxreact
store.dispatch({type:"cart/cleared"})Working Example
Example Snippetreact
store.dispatch({type:"cart/cleared"})Sends an action through the store dispatch chain.
store.dispatch({type:"cart/cleared"})store.dispatch({type:"cart/cleared"})