Does RTK has a "global" loading/fetching flag that listens to ALL data queries/mutations?

77 Views Asked by At

I have the need of disabling filters and forms based on the status of the data queries and mutations of the application. Pretty much block the user interaction when something is being loaded or refreshed.

I am wondering if RTK Query, or just RTK, has a global fetching/loading status indicator?

Before RTK we had a global isLoading flag that we set to true any time a thunk fired. This is messy as there are so many instances of this action across the code.

0

There are 0 best solutions below