DEV Community

Discussion on: Vue: When a computed property can be the wrong tool

Collapse
hawkeye64 profile image
Jeff Galbraith

Vue uses keys for deterministic re-evaluation. It's use case is typically for loops, but a key can be used on any component/element. When a key changes, that forces Vue to do a re-evaluation.