Skip to content

refactor: tidy ResourceLoader.enableRetry defaults and input handling#8745

Merged
mvaligursky merged 1 commit into
mainfrom
mv-asset-retries-followup
May 18, 2026
Merged

refactor: tidy ResourceLoader.enableRetry defaults and input handling#8745
mvaligursky merged 1 commit into
mainfrom
mv-asset-retries-followup

Conversation

@mvaligursky
Copy link
Copy Markdown
Contributor

Small follow-up to #8744 addressing review comments on ResourceLoader.enableRetry.

Changes:

  • AppBase now calls this.loader.enableRetry() without arguments, so the default retry count (5) lives in a single place — the ResourceLoader.enableRetry signature — instead of being duplicated in AppBase.
  • ResourceLoader.enableRetry now floors maxRetries before clamping, so non-integer inputs produce a predictable number of attempts (the underlying Http retry counter compares against an integer).

Small follow-up to #8744 addressing review comments on
ResourceLoader.enableRetry.

- AppBase now calls this.loader.enableRetry() without arguments, so the
  default retry count (5) lives in a single place - the enableRetry
  signature - instead of being duplicated in AppBase.
- enableRetry now floors maxRetries before clamping, so non-integer
  inputs produce a predictable number of attempts.
@mvaligursky mvaligursky self-assigned this May 18, 2026
@mvaligursky mvaligursky merged commit 560c391 into main May 18, 2026
13 of 14 checks passed
@mvaligursky mvaligursky deleted the mv-asset-retries-followup branch May 18, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant