core
core copied to clipboard
fix(runtime-core): functional component with patchFlag set to 0 should be forced to update
close #11227
Size Report
Bundles
| File | Size | Gzip | Brotli |
|---|---|---|---|
| runtime-dom.global.prod.js | 89.4 kB (+24 B) | 34.2 kB (+11 B) | 30.8 kB (+26 B) |
| vue.global.prod.js | 146 kB (+24 B) | 53.6 kB (+11 B) | 47.8 kB (+98 B) |
Usages
| Name | Size | Gzip | Brotli |
|---|---|---|---|
| createApp | 51.3 kB (+24 B) | 20.1 kB (+10 B) | 18.3 kB (+15 B) |
| createSSRApp | 54.7 kB (+24 B) | 21.5 kB (+9 B) | 19.5 kB (+4 B) |
| defineCustomElement | 53.6 kB (+24 B) | 20.9 kB (+10 B) | 19 kB (-8 B) |
| overall | 65.1 kB (+24 B) | 25.1 kB (+11 B) | 22.7 kB (-24 B) |
Thanks for the PR, but this is not the right fix. The root cause is slots from useSlots are not reactive, but whether we want to change that behavior still needs more discussion.