Skip to content

Shallow routing on Next.js 13's next/navigation #48110

Discussion options

You must be logged in to vote

Hey all, I've landed #58335 on canary which allows you to get pretty much the same behavior as shallow in pages where it keeps the internal route state up-to-date but doesn't trigger an external fetch to the server. The same plumbing was needed for the navigate event in the future so this is an early version that solves most "shallow routing" requirements too.

Edit: This is now live: https://nextjs.org/docs/app/building-your-application/routing/linking-and-navigating#using-the-native-history-api

Replies: 41 comments 130 replies

Comment options

You must be logged in to vote
2 replies
@AndreSilva1993
Comment options

@hedysnike
Comment options

Comment options

You must be logged in to vote
2 replies
@AndreSilva1993
Comment options

@tacomanator
Comment options

This comment was marked as off-topic.

@m2rt

This comment was marked as off-topic.

@Tomekmularczyk

This comment was marked as off-topic.

This comment was marked as off-topic.

@joacub

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

Comment options

You must be logged in to vote
2 replies
@joacub
Comment options

@afewyards
Comment options

This comment was marked as off-topic.

@jschuur

This comment was marked as off-topic.

@Miloshinjo

This comment was marked as off-topic.

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@rgwebcode
Comment options

@actraiser
Comment options

@Tomekmularczyk
Comment options

@JMURv
Comment options

@arathjz
Comment options

This comment was marked as off-topic.

Comment options

You must be logged in to vote
1 reply
@AndreSilva1993
Comment options

Comment options

You must be logged in to vote
2 replies
@JS-GitRepo
Comment options

@hedysnike
Comment options

Comment options

You must be logged in to vote
7 replies
@jonuchiha
Comment options

@AaronMullan
Comment options

@BenMcD0nald
Comment options

@manghat
Comment options

@hedysnike
Comment options

This comment was marked as off-topic.

This comment was marked as off-topic.

@jviall
Comment options

Comment options

You must be logged in to vote
7 replies
@sjoerdvanBommel
Comment options

@resthedev
Comment options

@franky47
Comment options

@franky47
Comment options

@resthedev
Comment options

This comment was marked as spam.

This comment was marked as off-topic.

Comment options

You must be logged in to vote
10 replies
@franky47
Comment options

@Emiliano-Bucci
Comment options

@JurajKavka
Comment options

@HurSungYun
Comment options

@h0lme3
Comment options

Comment options

You must be logged in to vote
1 reply
@JUNIORCO
Comment options

Comment options

You must be logged in to vote
7 replies
@arthureberledev
Comment options

@MielkeDaniel
Comment options

@ianldgs
Comment options

@MielkeDaniel
Comment options

@anonkey
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies

This comment was marked as spam.

This comment was marked as off-topic.

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@timneutkens
Comment options

@franky47
Comment options

@colinclerk
Comment options

Comment options

You must be logged in to vote
32 replies
@ianldgs
Comment options

@resthedev
Comment options

@melutovich
Comment options

@mgreenw
Comment options

@mdp-alex
Comment options

Answer selected by leerob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet