2.6.3 broke this.$slots vs. new syntax (docs need updated?)
See original GitHub issueVersion
2.6.3
Reproduction link
https://github.com/pearofducks/vue-slot-bug-repro
Steps to reproduce
- Run in dev mode
- Console will log the slot used in App.vue and defined in NamedSlot.js, and the page should contain the h1 in the slot
What is expected?
$slots.foo
should be available – or at least the API docs should be updated
What is actually happening?
$slots.foo
is undefined
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (2 by maintainers)
Top Results From Across the Web
Slots Unification
This change unifies normal and scoped slots in 3.x. Here is a quick summary of what has changed: this.$slots now exposes slots as...
Read more >So What's New in Vue 2.6?. A few days ...
The new syntax unifies the usage of normal and scoped slots in a single directive, and enforces more explicit and readable named slots...
Read more >Upgrade Guide
Upgrade Guide. # Upgrading from v1.5.x to v2.0.x. Version 2 contains non backwards compatible breaking changes.
Read more >OpenDJ 2.6 > Release Notes
OpenDJ 2.6.3 is a maintenance release that resolves a number of issues, including security issues in OpenDJ directory server. It is strongly recommended...
Read more >Upgrade Guide
Before starting, it is highly suggested to make a copy of your current working project or create a new branch with git. Ensure...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In 0e8560d I’ve made it so that only slots using the new
v-slot
syntax without scope are exposed onthis.$slots
. This should ensure intended behavior without affecting existing usage of legacy slots.This should alleviate the need for render function users to update their code to support 2.6 syntax, but eventually they will need to do it for v3.
Version 2.6.4 solves my issues with slots Thanks