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 55f7e09 commit 345ddcdCopy full SHA for 345ddcd
packages/reactivity/src/dep.ts
@@ -378,13 +378,10 @@ export function trigger(
378
endBatch()
379
}
380
381
-/**
382
- * Test only
383
- */
384
export function getDepFromReactive(
385
object: any,
386
key: string | number | symbol,
387
): Dep | undefined {
388
- // eslint-disable-next-line
389
- return targetMap.get(object)?.get(key)
+ const depMap = targetMap.get(object)
+ return depMap && depMap.get(key)
390
0 commit comments