Skip to content

Commit 7c7df5f

Browse files
committed
feat: change data tracer mode api
1 parent fb05550 commit 7c7df5f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/index.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,20 @@ export function BehaviorWithComputed<
9494
options.behaviors.unshift(behavior);
9595
return Behavior(options);
9696
}
97+
98+
// data tracer mode
99+
export enum DataTracerMode {
100+
Auto,
101+
Proxy,
102+
DefineProperty,
103+
}
104+
105+
let currentDataTracerMode = DataTracerMode.Auto;
106+
107+
export const getCurrentDataTracerMode = () => {
108+
return currentDataTracerMode;
109+
};
110+
111+
export const setCurrentDataTracerMode = (mode: DataTracerMode) => {
112+
currentDataTracerMode = mode;
113+
};

0 commit comments

Comments
 (0)