]> git.ipfire.org Git - thirdparty/vuejs/core.git/commit
refactor: adjust component options merge cache strategy
authorEvan You <yyx990803@gmail.com>
Wed, 2 Jun 2021 14:37:50 +0000 (10:37 -0400)
committerEvan You <yyx990803@gmail.com>
Wed, 2 Jun 2021 14:42:52 +0000 (10:42 -0400)
commit1e35a860b995c1158d5c4e1706d2fc9bcd3b8412
tree00792daf770563ce573889d99c3d3ba0e5e0dfb0
parent44996d1a0a2de1bc6b3abfac6b2b8b3c969d4e01
refactor: adjust component options merge cache strategy

BREAKING CHANGE: optionMergeStrategies functions no longer receive
the component instance as the 3rd argument. The argument was technically
internal in Vue 2 and only used for generating warnings, and should not
be needed in userland code. This removal enables much more efficient
caching of option merging.
packages/runtime-core/src/apiCreateApp.ts
packages/runtime-core/src/compat/instance.ts
packages/runtime-core/src/componentOptions.ts
packages/runtime-core/src/componentPublicInstance.ts