-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Router view component on root path ('/') route fails render with Suspense #3979
Comments
Does not change anything |
You should add the <router-view v-slot="{ Component }">
<div style="height: 100%">
<Suspense>
<component :is="Component" :key="route.path" />
</Suspense>
</div>
</router-view> |
@posva so, the problem was solved, but it was not in the component |
@posva |
There is already an open PR for that warning #2337. |
Version
3.1.1
Reproduction link
https://github.com/wtcodeai/vue3-issue
Steps to reproduce
{ path: '/', component: Home }
, where Home - any simple component,<div> Test </div>
for examplein main component for render route components.
What is expected?
When app initialized on '/' route Home component is rendered in router-view
What is actually happening?
Nothing renders
On the other routes all works fine, also without suspense all works fine on root path too
The text was updated successfully, but these errors were encountered: