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

Fix "ready" state for viewer API #168

Merged

Conversation

t11r
Copy link
Contributor

@t11r t11r commented May 13, 2024

Add promise creator so every component can define ready conditions, use it in scan component so "ready" is only fulfilled after viewer has been initialized.

Resolves #164

@t11r t11r requested review from ipf and paulpestov May 13, 2024 21:08
@t11r t11r linked an issue May 13, 2024 that may be closed by this pull request
src/components/ViewScan.vue Outdated Show resolved Hide resolved
Copy link

@ubbo ubbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks fine for me. possibly move the TODO to an issue

Add promise creator so every component can define ready conditions, use it in scan component so "ready" is only fulfilled after viewer has been initialized.

Resolves #164
@t11r t11r force-pushed the 164-ready-promise-is-fulfilled-before-viewer-api-is-available branch from 492dffa to a838f78 Compare May 16, 2024 16:15
@t11r t11r merged commit 648e959 into main May 17, 2024
9 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.

ready promise is fulfilled before viewer API is available
2 participants