-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
HMR issue with named slots #9474
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
Comments
Fixed in |
i'm having the same issue as well; clone this https://github.com/fk1blow/vue-test-hmr If you try to modify the A strange thing to notice is that if i modify the vue: 2.6.10 |
I can also report that this is still an an issue for me using render functions with scoped slots. |
Still an issue for me as well, checked node_modules/vue-hot-reload-api/package.json, it says 2.3.4, but components inside named slots are reloaded inconsistently Adding boolean props without explicit value, say adding/removing Removing entire html elements inside component also doesn't reload, but editing prop values of those elements does |
I can confirm this is still happening as of Oct 2021. I have a
<!-- Tab content -->
<div class="mt-6 w-full">
<keep-alive>
<slot :name="tabs[activeTab].name || tabs[activeTab].text" />
</keep-alive>
</div> |
The same for me. Actually the same case. @nadirabbas have you found any solutions? Which is worse I have some lib that is loading inside the slot and it's rendering content just for the first tab slot. |
@yyx990803 Can anybody reopen this issue? Looks like it's not still resolved for many. Thanks. |
Nah I haven't, I have just created a keybind to force refresh the component XD |
This is still issue. What can we do to help to get this fixed? |
@niksy you can make vue use the version of |
@nadirabbas I’m using 2.3.4 and still experiencing issue. I’ve tried to apply changes to both |
Any updates on this? I am still experiencing the issue :( |
Version
2.6.5
Reproduction link
https://github.com/AlexandreBonaventure/vue-hmr-bug
Steps to reproduce
test
here : https://github.com/AlexandreBonaventure/vue-hmr-bug/blob/master/src/App.vue#L5What is expected?
That HMR works even if the default slot is not overriden.
What is actually happening?
If the default slot is not overridden (content set in the parent scope), HMR does not trigger a re-render for named slots content.
ps: sorry here for the minimal repro with a build step, but dunno how else we can do it!
The text was updated successfully, but these errors were encountered: