Skip to content

Commit 148f0b8

Browse files
committed
refactor: remove deprecated pauseTracking and resumeTracking functions
1 parent 3656408 commit 148f0b8

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/index.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ interface Signal<T = any> extends ReactiveNode {
2222
value: T;
2323
}
2424

25-
const pauseStack: (ReactiveNode | undefined)[] = [];
2625
const queuedEffects: (Effect | EffectScope | undefined)[] = [];
2726
const {
2827
link,
@@ -82,20 +81,6 @@ export function endBatch() {
8281
}
8382
}
8483

85-
/**
86-
* @deprecated Will be removed in the next major version. Use `const pausedSub = setCurrentSub(undefined)` instead for better performance.
87-
*/
88-
export function pauseTracking() {
89-
pauseStack.push(setCurrentSub(undefined));
90-
}
91-
92-
/**
93-
* @deprecated Will be removed in the next major version. Use `setCurrentSub(pausedSub)` instead for better performance.
94-
*/
95-
export function resumeTracking() {
96-
setCurrentSub(pauseStack.pop());
97-
}
98-
9984
export function signal<T>(): {
10085
(): T | undefined;
10186
(value: T | undefined): void;

0 commit comments

Comments
 (0)