Commit Graph

17 Commits

Author SHA1 Message Date
Rahul Kadyan 4ecc21c29e feat(devtools): store functional render context on vnode in development (#8586) 2018-11-30 17:31:44 -05:00
Evan You 62a922e865 fix: fix wrongly matched named slots in functional components
This is a subtle edge case caused when a stateful component triggers
a self re-render, which reuses cached slot nodes. The cached slot
nodes, if returned from a functional render fn, gets the fnContext
property which causes subsequent slot resolving to not function
properly. To fix this, nodes returned from functional components
need to be cloned before getting assigned fnContext.

fix #7817
2018-03-13 17:48:52 -04:00
Evan You 6dd73e9ee4 fix: named slots for nested functional components
Named slots should be respecred when passing raw children down multiple
layers of functional components.

fix #7710
2018-03-13 11:40:04 -04:00
Evan You 9b22d86ab3 fix: install ssr helpers for functional context during SSR
close #7443, ref nuxt/nuxt.js#2565
2018-03-08 09:51:03 -05:00
Evan You 8335217cb4 fix(core): handle edge cases for functional component returning arrays
fix #7282
2017-12-20 11:02:56 -05:00
Evan You 604e081d04 fix: ensure functionalContext is cloned during slot clones
fix #7106
2017-11-22 16:37:24 -05:00
Evan You 12255ff220 refactor: simplify functional renderStatic 2017-10-12 09:12:16 -04:00
Evan You 421658884f fix: fix scoped CSS for nested nodes in functional components 2017-10-11 11:17:46 -04:00
Evan You 050bb33f9b feat: scoped CSS support for functional components 2017-10-11 10:38:46 -04:00
Evan You ea0d227d2d feat: functional component support for compiled templates 2017-10-10 22:33:16 -04:00
Evan You f4ee63ca10 refactor: also use emptyObject for functional listeners 2017-08-29 23:09:20 +02:00
Evan You 8dc4215994 improvements for handling vue-loader functional components with style injections 2017-05-02 18:27:29 +08:00
Evan You 228f0f8f3b remove unnecessary :any castings due to improved flow checks 2017-04-29 14:56:14 +08:00
Herrington Darkholme bb7c543fc2 fix #5539: improve `isDef` type definition (#5549)
* fix #5539: improve flow type coverage

* skip unnecessary object creation

* use flow internal syntax to enable predicate type
2017-04-29 14:24:06 +08:00
Evan You 7d3c883f83 fix functional context resolving merge errors 2017-04-05 15:55:44 +08:00
Evan You 4e12b25d78 simplify functional component usage 2017-04-05 14:38:46 +08:00
Evan You 5818ac9203 split create-functional-component 2017-04-05 14:37:41 +08:00