This is a bonus of using Vue then if this kind of code doesn't pose a problem there?
Makes me wonder why this is all so difficult. Vue has a lot less problems for me than previous iterations and frameworks, but it's still frustrating how many footguns still exist. Like gotchas where you lose reactivity where linters/compilers won't catch the problem for you, and you forget the gotchas if you're not immersed in that framework for a while.
I'm not getting why we can't have robust static checking for this stuff vs trusting every developer to be careful.