Skip to content

Commit caa2b46

Browse files
committed
fix(reactivity): computed should not be detected as true by isProxy
1 parent 9e8ac0c commit caa2b46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/reactivity/src/reactive.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ export function isShallow(value: unknown): boolean {
329329
* @param value - The value to check.
330330
* @see {@link https://vuejs.org/api/reactivity-utilities.html#isproxy}
331331
*/
332-
export function isProxy(value: unknown): boolean {
333-
return isReactive(value) || isReadonly(value)
332+
export function isProxy(value: any): boolean {
333+
return value ? !!value[ReactiveFlags.RAW] : false
334334
}
335335

336336
/**

0 commit comments

Comments
 (0)