Subscribe on changes!

this.$options is a reference for two components

avatar
Jun 8th 2022

Vue version

3.2.36

Link to minimal reproduction

https://codesandbox.io/s/flamboyant-wilbur-eutxkk

Steps to reproduce

vue 2.6.11 reproduction vue 3.2.33 reproduction

Miscellaneous behavior: component mount order

and in the console this.$options.mounted in version 3 both components are empty, unlike version 2

What is expected?

Changing a parameter from this.$options (for example, mounted) in one component, leads to a change in this parameter from this.$options of the same component located "nearby"

In vue 2 it was possible to change these parameters in each component separately. The same behavior was expected

What is actually happening?

Changing the options of one component located on the page twice

System Info

No response

Any additional comments?

No response