Feature Request: API for checking if query/mutation/action is loading

In general, there are workarounds like erquhart pointed out in this thread:
support-communitySome way to check if the query in Next.js is loading or some way to check if the query was skipped?

These workarounds are totally working, but my big issue with these is that I always have to differentiate between null and undefined and need to remember which one of these two represents the loading and which is the "no answer" case. This is not only an overhead for the client but also an overhead for writing the backend code since you can't just return one of these but instead have to think through which one of these represents the loading state so you have to return the other one.

I also just could return "no data" but then it gets messier on the client and is not my way of doing things.

Just quality of life feedback.
Was this page helpful?