Skip to content

Commit 0ae7316

Browse files
committed
chore: update comments for proxyRefs
1 parent f15ba2c commit 0ae7316

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/reactivity/src/ref.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,9 @@ const shallowUnwrapHandlers: ProxyHandler<any> = {
250250
}
251251

252252
/**
253-
* Returns a reactive proxy for the given object.
254-
*
255-
* If the object already is reactive, it's returned as-is. If not, a new
256-
* reactive proxy is created. Direct child properties that are refs are properly
257-
* handled, as well.
253+
* Returns a proxy for the given object that shallowly unwraps properties that
254+
* are refs. If the object already is reactive, it's returned as-is. If not, a
255+
* new reactive proxy is created.
258256
*
259257
* @param objectWithRefs - Either an already-reactive object or a simple object
260258
* that contains refs.

0 commit comments

Comments
 (0)