How can we use redux dispatch in a query function?
Hi guys, I'm currently working on a project using redux and I want to migrate to part to tanstack query. I wanted to know if you have some insights about how can I call the dispatch function in a query function? The issue is that the dispatch function is coming from the useAppDispatch hook and since we can't use a react hook as a query function I can't use hooks inside the query function :'( Can you help me amazing devs?