Closed HaNdTriX closed 7 years ago
Next.js added support for Shallow Routing in Version 2.0.0-beta.37. They introduced a third parameter (options). With this PR next-routes will support this param as well.
Version 2.0.0-beta.37
options
Router.pushRoute('about', {foo: 'bar'}, { shallow: true }) Router.replaceRoute('about', {foo: 'bar'}, { shallow: true })
https://github.com/zeit/next.js#shallow-routing
That's great, thank you!
Is there any way to use this with the <Link /> component?
<Link />
Background
Next.js added support for Shallow Routing in
Version 2.0.0-beta.37
. They introduced a third parameter (options
). With this PR next-routes will support this param as well.Docs
https://github.com/zeit/next.js#shallow-routing
Solves
13