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 556125d commit 2bb7e70Copy full SHA for 2bb7e70
.changeset/proud-times-mix.md
@@ -0,0 +1,5 @@
1
+---
2
+'@tanstack/pacer': patch
3
4
+
5
+fix: remove structuredClone from async utils
packages/pacer/src/async-retryer.ts
@@ -45,7 +45,7 @@ export interface AsyncRetryerState<TFn extends AnyAsyncFunction> {
45
function getDefaultAsyncRetryerState<
46
TFn extends AnyAsyncFunction,
47
>(): AsyncRetryerState<TFn> {
48
- return structuredClone({
+ return {
49
currentAttempt: 0,
50
executionCount: 0,
51
isExecuting: false,
@@ -54,7 +54,7 @@ function getDefaultAsyncRetryerState<
54
lastResult: undefined,
55
status: 'idle',
56
totalExecutionTime: 0,
57
- })
+ }
58
}
59
60
export interface AsyncRetryerOptions<TFn extends AnyAsyncFunction> {
0 commit comments