Skip to content

hamitmohamadi/next-app-with-route-loading

Repository files navigation

Example Next.js app with route loading

Sometimes when switching between pages, Next.js needs to download pages from the server before rendering the page. This will happened on SSR projects specially, And it may also need to wait for the data. So while doing these tasks, the browser might be non responsive.

We can simply fix this issue by showing a loading indicator.

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published