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?