allow customising top level page keys
See original GitHub issueEnvironment
- Operating System:
Linux
- Node Version:
v17.4.0
- Nuxt Version:
3.0.0-27383920.81ee59c
- Package Manager:
yarn@3.1.1
- Bundler:
Vite
- User Config:
buildModules
- Runtime Modules:
-
- Build Modules:
normalizedModule()
,normalizedModule()
Reproduction
Create simple page:
pages/[code].vue
Visit http://localhost:3000/test-1
Go to http://localhost:3000/test-2
via NuxtLink component
Describe the bug
After this MR https://github.com/nuxt/framework/pull/2859 and this change, page not redraw between routes, but url in address bar is changed.
Additional context
You can explicitly define key on <NuxtPage :key="route.path" />
but page transitions wont work.
https://github.com/nuxt/framework/pull/2861
Logs
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Use AssistiveTouch on your iPhone, iPad, or iPod touch
Customize the AssistiveTouch menu · Go to Settings > Accessibility > Touch > AssistiveTouch. · Tap Customize Top Level Menu, then tap an...
Read more >Customize the navigation on your SharePoint site
In Site Pages, select the page you want to add, then select the ellipsis (...) in the horizontal navigation bar. ... Select Add...
Read more >justbur/emacs-which-key - GitHub
which-key-show-top-level will show most key bindings without a prefix. ... which will allow you to cycle through the pages without changing the key...
Read more >Customize your Firebase Crashlytics crash reports - Google
Crashlytics provides four logging mechanisms out of the box: custom keys, ... even filter the events by custom keys (Filter menu at the...
Read more >Use your Chromebook keyboard - Google Support
Your unique Chromebook keys usually appear on the top row of your keyboard from left to right. ... Make your page take up...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am also seeing a similar issue where a route such as
pages/info/[type]/index.vue
must re-run<script setup>
when navigating betweenexample.com/info/new
andexample.com/info/old
but it does not seem to do so.In the case where an app does not have
layouts
orapp.vue
I don’t see a way for each page to have a key besides giving route by default again.I can confirm that the issue started with https://github.com/nuxt/framework/pull/2859
if you develop an e-shop, blog or anything where dynamic routes are used, with this bug Nuxt 3 is completely unusable. For me, this is a bug with P4. Every bigger project use dynamic routes