Fetching data from API endpoints

Is there a way to fetch data from client Component without exposing API endpoints on frontend?
6 Replies
Ryan
Ryan16mo ago
what are you trying to get from the client?
barry
barry16mo ago
no why would you need to hide an endpoint lol
whatplan
whatplan16mo ago
fetch data from client Component
without exposing API endpoints on frontend
these are incompatible statements, client components are your frontend, so any data they fetch must be exposed
Revaycolizer
RevaycolizerOP16mo ago
Already fixed it
Coded_58
Coded_5816mo ago
how
Revaycolizer
RevaycolizerOP16mo ago
I just made the component to be async and I rendered the data with key of name and not id
Want results from more Discord servers?
Add your server