Next.js Discord

Discord Forum

Load data on view.

Unanswered
Wool sower gall maker posted this in #help-forum
Open in Discord
Wool sower gall makerOP
hey guys I have an endpoint on my api with 5k gifs. In my frontend I want to display them in a dropdown. How would I only fetch the images which are current in the view of the dropdown. so i dont fetch all 5k images everytime. currently im fetching the images in my servercomponent and pass it to my child component. Or maybe someone could help me out how is this pattern called so I can google it myself

1 Reply

Pagination, google that :D