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

Avoid calling next more than once when navigating from / to /errata #588

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

javihernandez
Copy link
Member

.dispatch('platforms/loadPlatformList')
.then(next())
.catch(next())
store.dispatch('platforms/loadPlatformList').then(next())

Choose a reason for hiding this comment

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

I think I found the cause. dispatch() returns a Promise, so then(next()) does not wait for loadPlatformList to complete.

Suggested change
store.dispatch('platforms/loadPlatformList').then(next())
store.dispatch('platforms/loadPlatformList').then(() => next())

Copy link
Member Author

Choose a reason for hiding this comment

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

ohh, I see, can you try now?

Choose a reason for hiding this comment

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

Yes, this fixes my issue. Thanks a lot!
(There are other then(next()) in route.js, which might not be intentional either.)

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.

[BUG]: Errata list does not display correctly due to race condition
4 participants