How to trigger data fetching from an action with RTK Query?
I’m not new to Redux, but I am new to RTK and RTK Query. Back in the old days the way you’d trigger data to refetch whenever a specific action happened (I changed my form state, that means I want to fetch new data based on that form state) was you’d dispatch your action, then you’d have a saga that would be listening for that action and kick off a data fetch, which would have its own sequence of actions.
How to clear the cache of a query in RTKQuery
I’m currently in a situation where I’m questioning the best way to handle this situation with RTKQuery: