You call a computed() getter fifty times in one render and it only runs once. You mutate a ref it depends on and — nothing happens, not yet. Then you read .value and it recomputes. If that sequence feels slightly magical, it's because computed() isn't a function you call. It's a cached, lazily-evaluated effect with its own subscription list, and... Weiterlesen
Intelligence View
Vue computed(): What It Caches and When It Reruns
You call a computed() getter fifty times in one render and it only runs once. You mutate a ref it depends on and — nothing happens, not yet. Then you read .value and it recomputes. If that sequence feels slightly magical, it's because …
SOCIAL SHARE CARD GENERATOR