]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: update comments for proxyRefs
authorEvan You <evan@vuejs.org>
Wed, 17 Jul 2024 10:01:13 +0000 (18:01 +0800)
committerEvan You <evan@vuejs.org>
Wed, 17 Jul 2024 10:01:13 +0000 (18:01 +0800)
packages/reactivity/src/ref.ts

index 68ccdc3103ee32419a641fd3d6e3faddc0b6309c..a478ff46422d7f2af8e94a408a6fc20a0507663f 100644 (file)
@@ -250,11 +250,9 @@ const shallowUnwrapHandlers: ProxyHandler<any> = {
 }
 
 /**
- * Returns a reactive proxy for the given object.
- *
- * If the object already is reactive, it's returned as-is. If not, a new
- * reactive proxy is created. Direct child properties that are refs are properly
- * handled, as well.
+ * Returns a proxy for the given object that shallowly unwraps properties that
+ * are refs. If the object already is reactive, it's returned as-is. If not, a
+ * new reactive proxy is created.
  *
  * @param objectWithRefs - Either an already-reactive object or a simple object
  * that contains refs.