Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AbortError and use in Viewer #16097

Merged
merged 1 commit into from
Jan 22, 2025
Merged

Conversation

ryantrem
Copy link
Member

There was some feedback from users that it was confusing to see abort/cancellation errors in the log, since it seemed to indicate something bad was happening when in reality it wasn't. It was simply that a new model or environment was being loaded before the previous one finished loading. This change introduces an AbortError (there isn't a standard as part of WebAPI), uses it in the AbortController.abort calls, and checks for it in the ViewerElement so we can ignore abort/cancellation errors (but still log "real" errors).

@alexandremottet, @cournoll

@ryantrem ryantrem requested a review from RaananW January 22, 2025 19:27
@bjsplat
Copy link
Collaborator

bjsplat commented Jan 22, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@ryantrem ryantrem enabled auto-merge (squash) January 22, 2025 19:39
@bjsplat
Copy link
Collaborator

bjsplat commented Jan 22, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jan 22, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jan 22, 2025

@ryantrem ryantrem merged commit 595d786 into BabylonJS:master Jan 22, 2025
14 checks passed
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.

3 participants