DEV Community

Discussion on: When to avoid VueJs Computed Properties for greater performance

Collapse
 
pecus profile image
Matteo Fogli

Good point! That’s indeed correct. Both are mentioned in the documentation and serve different purposes. v-once removes the node from diffing in virtual-DOM, while Object.freeze() effectively prevents from tracking reactivity (akin to what was exemplified in the article).