Redux Toolkit / RTK Query
createListenerMiddleware
Runs registered effects in response to matching actions or state changes.
Formal Syntax & Structure
react syntaxreact
createListenerMiddleware()Working Example
Example Snippetreact
createListenerMiddleware()