Skip to content

Commit

Permalink
perf: 优化targetMap为WeakMap类型
Browse files Browse the repository at this point in the history
  • Loading branch information
TingShine committed Dec 20, 2022
1 parent 973d6b4 commit 38d5e99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/reactive/reactive.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { baseHandlers } from "./basehandlers";

const targetMap = new Map()
const targetMap = new WeakMap()

export enum ReactiveFlags {
RAW = '_v_raw_',
Expand Down

0 comments on commit 38d5e99

Please sign in to comment.