Skip to content
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

How to pass the router prop to <RouterView /> #1478

Open
niceplugin opened this issue Jul 20, 2022 · 2 comments
Open

How to pass the router prop to <RouterView /> #1478

niceplugin opened this issue Jul 20, 2022 · 2 comments
Labels
docs Concerns the documentation content or the documentation website

Comments

@niceplugin
Copy link
Contributor

Version

4.1.2

Reproduction link

codesandbox.io

Steps to reproduce

  1. Configure your router.
  2. Go to router.
  3. throws an error.

What is expected?

<router-view/> renders the route component.

What is actually happening?

Error!
Console is:
[Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at......


I was told to report the error message to vue/core.
But this can happen because I don't know how to use it.
So I reported it to vue/router .
If I'm using it wrong, the documentation might need more explanation.
Description is too sparse.
Thanks.

@posva
Copy link
Member

posva commented Jul 20, 2022

You are adding the route prop to routerview but it's not the right value (https://router.vuejs.org/api/index.html#route). It's an advanced feature so it's a bit hidden. It will be added later on

You can find an example here

@posva posva added the docs Concerns the documentation content or the documentation website label Jul 20, 2022
@niceplugin
Copy link
Contributor Author

I understood correctly.

It will be added later on

and added docs label, so I'm not going to close this issue.

Thanks.

@posva posva changed the title <router-view> Props: route throw Error. Console say "This is likely a Vue internals bug...." How to pass the router prop to <RouterView /> Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Concerns the documentation content or the documentation website
Projects
None yet
Development

No branches or pull requests

2 participants