how can I get the status if the request are being made from nextjs to appwrite, something like request interceptor
Do you mean from server side? Why?
To check if requests being made, i do spinner component
Uhh...typically, what you do is have a Boolean to show or hide the spinner. Before making the API call, set the Boolean to true. After the API call, set the Boolean to false π§
πππ right going to have boolean to check loading status. But intercepted requests. I only check once , then showing spinner . No need to do for all components
But wouldn't you show the loading spinner specifically at a certain spot related to the data being fetched? π§
Right but once globally
Hmm ...well the SDK doesn't have any interceptor....but maybe you can make one by subclassing the client
will try to check it out.
Recommended threads
- Framework categorization for Sites
Hello, I want to deploy my web app via Appwrite SItes. My web app is vite+reactjs. In the Appwrite docs, it creates a vite+react app, and chooses React from the...
- Appwrite Education Plan Activation Reque...
Hi How Can i Get Access To Appwrite's Education Plan Using Github, I Have My Github Education Pack Active and Want to Claim This Offer and Github Only Shows Sup...
- How to use Appwrite MCP on Claude Deskto...
Hello I'd like to use the Appwrite MCP with Claude Desktop and have set up the connector, but asking questions about my Appwrite instance does not work. Any ide...