File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,12 +98,14 @@ function convertToLazyBoundMethod(
9898}
9999
100100/**
101- * Convert a getter to a lazy-computed property .
101+ * Convert a getter to a lazily-cached Ref cell .
102102 *
103103 * Only ever called when the descriptor has a getter, so `originalGetter` is
104- * always defined here. A getter that returns a Ref/computed is cached (stable
105- * reactive identity); a getter that returns a plain value de-optimizes back to
106- * a native getter on the prototype, removing all overhead for future instances.
104+ * always defined here. A getter that returns any Ref — ref(), shallowRef(),
105+ * computed() (a ComputedRef IS a Ref) — is cached under the instance symbol
106+ * (stable reactive identity); a getter that returns a plain value
107+ * de-optimizes back to a native getter on the prototype, removing all
108+ * overhead for future instances.
107109 */
108110function convertToLazyRef (
109111 proto : any ,
You can’t perform that action at this time.
0 commit comments