Fetching data from API endpoints

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