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.

Inconsistent behavior between functional component and normal ones

See original GitHub issue

Version

2.5.16

Reproduction link

https://codesandbox.io/s/9y8kz86624

Steps to reproduce

  1. create a component with a slot, and add some fallback content to the slot
  2. create a component with render function h => h() and use it as the slot content
  3. create a functional component with render function h => h() and use it as the slot content

What is expected?

Fallback content should be rendered.

What is actually happening?

For the normal component, fallback content is cleared and a comment node is rendered. For the functional component, the fallback content is rendered.


Related: https://github.com/vuejs/vue/issues/7829#issuecomment-373131958

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
robcresswellcommented, Jun 28, 2018

Is https://github.com/bootstrap-vue/bootstrap-vue/issues/1680 related to this? We seem to have some odd failures in Bootstrap-Vue that several people have flagged as only occuring in the 2.5.16 and not beforehand.

0reactions
yyx990803commented, Jun 28, 2018

Also: this is not related to #7958 or the regression found in bootstrap-vue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

7 Reasons to Outlaw React's Functional Components
4. Inconsistency. Function and class components look different. This inconsistency can slow developers down as they shift between the two ...
Read more >
Functional Neurologic Disorder
If you have FND, your unplanned movements and symptoms occur without you consciously starting them and are inconsistent and distinct from ...
Read more >
React Hooks showing inconsistent behaviour - Stack Overflow
I wanted to get a feel for react hooks and was trying them out by making a normal todo list with adding and...
Read more >
Why are function components better than class ... - Reddit
With hooks, the output of a function component is no longer a deterministic result of the inputs, it also depends on the state...
Read more >
Cognitive dissonance: Definition, effects, and examples
The dissonance between two contradictory ideas, or between an idea ... to resolve cognitive dissonance by either changing one's behavior or ...
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