4 ms·
It's more internally consistent by design. It means "you can't miss a update because you forget to do something or something" or "this thing only work correctly
by mmis1000 5y ago
It's more internally consistent by design. It means "you can't miss a update because you forget to do something or something" or "this thing only work correctly if you do something or something",
e.g. change the code in useMemo and forget to update the dependency, add a callback and forget useCallback results in re-render everytime. Those guarantees are opt-out instead of opt-in in vue by design.
You have to specifically call some api in vue to opt-out the guarantees if you really want to optimize it yourself. In other word, you are not going to get blazingly fast performance by default if you actually do nothing and use it like html, but you also won't get shit like performance if you use it like that. (Generally you get a decent performance that you won't want to open devtool to check "what the hell framework is this site use?", you are probably not even going to realize the site is using vue)