fix(reactivity): shallowReactive for collections (#1204)

close #1202
This commit is contained in:
Carlos Rodrigues
2020-05-18 16:17:37 +01:00
committed by GitHub
parent ba62ccd55d
commit 488e2bcfef
3 changed files with 77 additions and 15 deletions

View File

@@ -7,7 +7,8 @@ import {
} from './baseHandlers'
import {
mutableCollectionHandlers,
readonlyCollectionHandlers
readonlyCollectionHandlers,
shallowCollectionHandlers
} from './collectionHandlers'
import { UnwrapRef, Ref } from './ref'
@@ -67,7 +68,7 @@ export function shallowReactive<T extends object>(target: T): T {
target,
false,
shallowReactiveHandlers,
mutableCollectionHandlers
shallowCollectionHandlers
)
}