minhoyooDEV / test-with-shallow-routing

Home Page:with-shallow-routing-minhoyoodev.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shallow Routing Example

With Shallow Routing, we can change the URL without running data fetching methods (like getStaticProps and getServerSideProps) again.

We do this by passing the shallow: true option to Router.push or Router.replace.

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

How to use

Execute create-next-app with npm or Yarn to bootstrap the example:

npx create-next-app --example with-shallow-routing with-shallow-routing-app
# or
yarn create next-app --example with-shallow-routing with-shallow-routing-app

Deploy it to the cloud with Vercel (Documentation).

About

with-shallow-routing-minhoyoodev.vercel.app


Languages

Language:JavaScript 100.0%