What is equivalent of useQueryState for a redux toolkit mutation?

1.4k Views Asked by At

You can get data from redux store using the redux toolkit hook useQueryState
https://redux-toolkit.js.org/rtk-query/api/created-api/hooks#usequerystate

const useQueryStateResult = api.endpoints.getPosts.useQueryState(arg, options)

this property .useQueryState exists only for queries, what to use if we want to know the result of mutation later on?

0

There are 0 best solutions below