mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 09:02:03 +00:00
docs: suggest using <NuxtPage>
rather than <RouterView>
(#25106)
This commit is contained in:
parent
3d368c9c7f
commit
4168157214
@ -15,6 +15,10 @@ links:
|
||||
It accepts same `name` and `route` props.
|
||||
::
|
||||
|
||||
::callout{color="amber" icon="i-ph-warning-duotone"}
|
||||
`<NuxtPage>` should be used instead of `<RouterView>` as the former takes additional care on internal states. Otherwise, `useRoute()` may return incorrect paths.
|
||||
::
|
||||
|
||||
## Props
|
||||
|
||||
- `name`: tells `RouterView` to render the component with the corresponding name in the matched route record's components option.
|
||||
|
Loading…
Reference in New Issue
Block a user