Next.js Discord

Discord Forum

Lazy loading dropdown

Unanswered
berkserbet posted this in #help-forum
Open in Discord
Hi all, I have a server component that makes a time consuming API call that gets options for product filters on an ecommerce site. The result of this call is then passed to a client component to be displayed, however the whole thing takes far too much time. What I would like to happen is that the API call is made in the background while everything else has loaded, and once the API request completes, it should show the relevant client component.

1 Reply