-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Adding 'ref' attribute to component in router-view breaks beforeRouteEnter next( vm => {} ) #461
Comments
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 setup(props, { slots }) {
return () => {
const component = h(
ViewComponent,
{
ref: viewRef, // a ref()
}
)
return slots.default({ Component: component })
}
} |
Opened vuejs/core#2078 |
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
Fixed in vue-next |
I don't know, the reproductions seem to work. A proper bug report would help |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: