-
Notifications
You must be signed in to change notification settings - Fork 2k
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
chore(web): cleanup promise handling #7382
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good! I'm surprised there are so many places where we don't await
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will it still be possible to call an async function in onMount
and (without awaiting) return a cleanup function? For example to abort a request.
Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
web/src/lib/components/faces-page/assign-face-side-panel.svelte
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, but it would be good to do some basic testing as well.
I manually tested the app by navigating around and trying out various pieces of functionality. The only thing I found that looked like a bug also happens on |
These are a subset of the errors pointed out by eslint when setting recommended-type-checked.