You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this one is a bug on vue. I will try to create a repro in the following days. The problem is we use our own ref to retrieve the component instance but it gets overriden by the user's.
If you want to try to reproduce it in Vue. The relevant code is in RouterView
setup(props,{ slots }){return()=>{constcomponent=h(ViewComponent,{ref: viewRef,// a ref()})returnslots.default({Component: component})}}
posva
added
has workaround
A workaround has been found to deal with the issue
bug
Something isn't working
external
This depends on an external dependency but is kept opened to track it
and removed
has workaround
A workaround has been found to deal with the issue
labels
Sep 11, 2020
Version
4.0.0-beta.9
Reproduction link
https://jsfiddle.net/1e9mqocg/1/
Steps to reproduce
Add router-view with transition
Add beforeRouteEnter guard to child view
What is expected?
setData() to be called when clicking "Home" (inspect console.log)
What is actually happening?
setData is never called
Just deleting the 'ref' attribute makes it work again, but the ref attribute is very useful.
The text was updated successfully, but these errors were encountered: