Fetching data from API endpoints

Is there a way to fetch data from client Component without exposing API endpoints on frontend?
6 Replies
Ryan
Ryan17mo ago
what are you trying to get from the client?
barry
barry17mo ago
no why would you need to hide an endpoint lol
whatplan
whatplan17mo 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
RevaycolizerOP17mo ago
Already fixed it
Coded_58
Coded_5817mo ago
how
Revaycolizer
RevaycolizerOP17mo 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