Fetching data from API endpoints
Is there a way to fetch data from client Component without exposing API endpoints on frontend?
6 Replies
what are you trying to get from the client?
no
why would you need to hide an endpoint lol
fetch data from client Component
without exposing API endpoints on frontendthese are incompatible statements, client components are your frontend, so any data they fetch must be exposed
Already fixed it
how
I just made the component to be async and I rendered the data with key of name and not id