Fetching data from API endpoints

Is there a way to fetch data from client Component without exposing API endpoints on frontend?
6 Replies
Ryan
Ryan2y ago
what are you trying to get from the client?
barry
barry2y ago
no why would you need to hide an endpoint lol
whatplan
whatplan2y 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
RevaycolizerOP2y ago
Already fixed it
Coded_58
Coded_582y ago
how
Revaycolizer
RevaycolizerOP2y ago
I just made the component to be async and I rendered the data with key of name and not id

Did you find this page helpful?