Prefetch loading and intercepting route POC

The purpose of this repo is POC why the loading.tsx not prefetched and instant show loading state when navigating to another page


All pages except the homepage share two common features:

Expectation from each page:

NOTE: open Network panel in inspect and select Slow 3G

NOTE 2: command + Shift + R to hard refresh (ignore cache)

Dynamic route

Shop page

Result:

FAQ How to check loading state is fetched : search 'Loading Shop page'

Dynamic route - some client component in loading.tsx

Quest page

Result:

FAQ How to check loading state is fetched : search 'Loading Quest page'

Intercepting route - Static page

Static page

Result:

FAQ How to check loading state is fetched : search 'Loading intercepting - Static'

Intercepting route - dynamic params page

dynamic params page - id = 123

Result:

FAQ How to check loading state is fetched : search 'Loading intercepting - Dynamic params'