vuejs / core

🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
https://vuejs.org/
MIT License
46.94k stars 8.24k forks source link

fix(runtime-core): functional component with patchFlag set to 0 should be forced to update #11258

Closed linzhe141 closed 2 months ago

linzhe141 commented 3 months ago

close #11227

github-actions[bot] commented 3 months ago

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)
yyx990803 commented 2 months ago

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.