router icon indicating copy to clipboard operation
router copied to clipboard

How to pass the `router` prop to `<RouterView />`

Open niceplugin opened this issue 3 years ago • 2 comments

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.

niceplugin avatar Jul 20 '22 14:07 niceplugin

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 avatar Jul 20 '22 19:07 posva

I understood correctly.

It will be added later on

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

Thanks.

niceplugin avatar Jul 21 '22 07:07 niceplugin