T
TanStack2y ago
national-gold

Hide API key to frontend

Hi, short question can https://tanstack.com/query/latest/docs/framework/react/guides/suspense help me on making queryFn invokation in a rsc; because i dont want my api key to be leaked in frontend ? thank you
Suspense | TanStack Query Docs
React Query can also be used with React's Suspense for Data Fetching API's. For this, we have dedicated hooks: useSuspenseQuery
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?