Inconsistent behavior between functional component and normal ones
See original GitHub issueVersion
2.5.16
Reproduction link
https://codesandbox.io/s/9y8kz86624
Steps to reproduce
- create a component with a slot, and add some fallback content to the slot
- create a component with render function
h => h()
and use it as the slot content - 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:
- Created 6 years ago
- Comments:8 (7 by maintainers)
Top 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 >
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 Free
Top 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
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.Also: this is not related to #7958 or the regression found in bootstrap-vue.