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

FileLoader: Make sure all network errors are catched in load(). #28216

Merged
merged 1 commit into from
Apr 27, 2024

Conversation

ycw
Copy link
Contributor

@ycw ycw commented Apr 25, 2024

Related: #24450

Problem:
FileLoader ignores edge cases like ... server down when response body still in progress ... in turns uncaught rejection

Solution:
This PR voids the readable stream for those edge cases s.t. it will enter catch() eventually.

Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize dev Filesize PR Diff
674.4 kB (167.1 kB) 674.4 kB (167.1 kB) +18 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Filesize dev Filesize PR Diff
453.8 kB (109.6 kB) 453.8 kB (109.6 kB) +0 B
@Mugen87 Mugen87 added this to the r164 milestone Apr 25, 2024
Mugen87
Mugen87 previously approved these changes Apr 25, 2024
@Mugen87 Mugen87 removed this from the r164 milestone Apr 25, 2024
@Mugen87 Mugen87 added this to the r165 milestone Apr 27, 2024
@Mugen87 Mugen87 changed the title Fixed edge cases in FileLoader Apr 27, 2024
@mrdoob mrdoob merged commit 16128f5 into mrdoob:dev Apr 27, 2024
12 checks passed
@ycw ycw deleted the quickfix-fileloader branch April 28, 2024 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants