question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

2.6.3 broke this.$slots vs. new syntax (docs need updated?)

See original GitHub issue

Version

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:closed
  • Created 5 years ago
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
yyx990803commented, Feb 8, 2019

In 0e8560d I’ve made it so that only slots using the new v-slot syntax without scope are exposed on this.$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.

0reactions
Garitocommented, Feb 8, 2019

Version 2.6.4 solves my issues with slots Thanks

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found