Raphael Jayme
Raphael Jayme

Reputation: 145

Routing with next.js SSR renders a blank screen before showing the page

I know that my data is being on server side and then my screen is going to be rendered, but is it possible to avoid this?

I'm already using next/link instead an a tag

Upvotes: 1

Views: 2579

Answers (1)

Mario Nikolaus
Mario Nikolaus

Reputation: 2406

Next.js will not return blank page and then rehydrate it. It will resolve the page once it gets data for new page. So transition will look like with any other server side rendering technology, user will stay on previous page as long as the new one is not loaded.

If that doesn't suit you, you can always extend your _app.js and add custom loaders/animation in between page transitions.

Upvotes: 2

Related Questions