We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 119f18c commit 2d4ad8aCopy full SHA for 2d4ad8a
packages/reactivity/src/reactive.ts
@@ -279,16 +279,16 @@ function createReactiveObject(
279
) {
280
return target
281
}
282
- // target already has corresponding Proxy
283
- const existingProxy = proxyMap.get(target)
284
- if (existingProxy) {
285
- return existingProxy
286
- }
287
// only specific value types can be observed.
288
const targetType = getTargetType(target)
289
if (targetType === TargetType.INVALID) {
290
291
+ // target already has corresponding Proxy
+ const existingProxy = proxyMap.get(target)
+ if (existingProxy) {
+ return existingProxy
+ }
292
const proxy = new Proxy(
293
target,
294
targetType === TargetType.COLLECTION ? collectionHandlers : baseHandlers,
0 commit comments