Skip to content

Commit

Permalink
Fixed timer refresh warning - this.maxAgeMs should always be set when…
Browse files Browse the repository at this point in the history
… the method is called, but we default to zero just in case.
  • Loading branch information
cip8 committed Aug 29, 2024
1 parent f3b0b1c commit 40a6674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/utils/refreshHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class DefaultRefreshHandler implements RefreshHandler {
}

// Restart the timer to its original value.
this.startRefreshTimer(this.maxAgeMs)
this.startRefreshTimer(this.maxAgeMs ?? 0)
}, durationMs)
}
}
Expand Down

0 comments on commit 40a6674

Please sign in to comment.