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

troika-three-text: no way to handle sync() errors #328

Open
pikilipita opened this issue Aug 21, 2024 · 0 comments
Open

troika-three-text: no way to handle sync() errors #328

pikilipita opened this issue Aug 21, 2024 · 0 comments

Comments

@pikilipita
Copy link

Under certains cases, sync() requires a network connection to perform a fetch.

If there is no network connection, this error happens:
Uncaught (in promise) TypeError: Failed to fetch
at T (861c985d-fdcb-469b-8949-cd8659c4d8ab:5:2247)
at A (861c985d-fdcb-469b-8949-cd8659c4d8ab:5:2747)
at t.getFontsForString (861c985d-fdcb-469b-8949-cd8659c4d8ab:5:2820)
...

I can't find any way to handle this error. Usual try / catch won't work here

@pikilipita pikilipita changed the title no way to handle sync() errors troika-three-text: no way to handle sync() errors Aug 21, 2024
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

No branches or pull requests

1 participant