route.params is undefined when navigating between pages
See original GitHub issueEnvironment
Nuxi 3.0.0-rc.13 17:31:32 RootDir: /Users/james/www/aaa 17:31:32 Nuxt project info: (copied to clipboard) 17:31:32
- Operating System:
Darwin
- Node Version:
v16.16.0
- Nuxt Version:
3.0.0-rc.13
- Nitro Version:
0.6.1
- Package Manager:
pnpm@7.16.0
- Builder:
vite
- User Config:
-
- Runtime Modules:
-
- Build Modules:
-
Reproduction
https://github.com/u007/nuxt-params
Describe the bug
when i navigate to:
http://localhost:3000/hi/abcme
it works.
but if I navigate from http://localhost:3000. and navigate to /hi/abcme by clicking on the link, the name is undefined
Additional context
No response
Logs
No response
Issue Analytics
- State:
- Created 10 months ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
React navigation undefined params - Stack Overflow
@Kraylog, thanks! I currently have the following (which works): this.props.navigation.navigate({ routeName: 'SomeScreen', params: { title: ' ...
Read more >Getting this.props.route.params as undefined even when i ...
in my app i have multiple tabs home, flights, hotels and holidays. from home screen i want to send some data to flight...
Read more >Passing parameters to routes - React Navigation
Pass params to a route by putting them in an object as a second parameter to the navigation.navigate function: this.props.navigation.navigate('RouteName', { /* ...
Read more >Getting Started with React Navigation v6 and TypeScript in ...
A route name that doesn't have any parameters being passed is specified with undefined . So, for example, in the above snippet, the...
Read more >How to Pass Data Between Pages in react-router-dom V6?
Defining the link and navigating. While defining the link just replace the params with the values. react router. Getting ...
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 Free
Top 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
i also face some inconsistencies in my other repository, but realised rc13 fixed it. Thank you so much @manniL
thank you, NuxtPage solved it