What is 'request' mean in document?
in react-query document,
it says
This ensures that data is not shared between different users and requests
,
I'm confusing the meaning of word 'request' between api request to server and react client of which single user using.
or any other meaning of request here? I'm noob to this library plz help!4 Replies
inland-turquoise•10mo ago
It looks like it's saying with SSR frameworks all data is shared between all users.
If you login and get your personal address from the backend, that's in the query client cache.
Since they cache is shared for everyone it's possible someone could get that info by visiting the site.
A global query client means a global client for the server.
In client side rendering this doesn't matter because it only exists in your browser.
equal-aquaOP•10mo ago
@Deleted User thx for your response! despite of your comment, i'm still confusing little bit, so you're saying 'request' means request for data in query client?
inland-turquoise•10mo ago
It means server request, frontend to backend communication.
With SSR you have a frontend making requests to the backend. The backend sends back data.
I'm not sure how this information leak can happen to be honest. But I'll take their word for it.
equal-aquaOP•10mo ago
I think now I'm understanding. much appreciate @Deleted User !