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: 43 comments 142 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 spam.

This comment was marked as off-topic.

Comment options

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

@abhion
Comment options

@franky47
Comment options

@abhion
Comment options

@franky47
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
9 replies
@ianldgs
Comment options

@MielkeDaniel
Comment options

@anonkey
Comment options

@peterchaula
Comment options

@doougui
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
36 replies
@mdp-alex
Comment options

@arackaf
Comment options

@A7xSV
Comment options

@kcrwfrd
Comment options

@A7xSV
Comment options

Answer selected by leerob
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet