redux state outside a component
When using rtk query, you might want to access state from outside a react component. This can be done by:
|
|
api
above is created with
createApi.
The state is from store.getState()
,
more.
Search
When using rtk query, you might want to access state from outside a react component. This can be done by:
|
|
api
above is created with
createApi.
The state is from store.getState()
,
more.