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

Move resetting mod list back to Profiles.vue #1242

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

anttimaki
Copy link
Collaborator

Commit b17d878 moved this bit of code from Profiles.vue to Manager.vue since it makes for the latter to handle the state manipulation that affects its own contents.

However, Vue doesn't await beforeCreate(), which opened up a race condition where it's technically possible for the updating of the mod list with an empty array to complete last, causing the view to render an empty state.

While placing this bit of code in Profiles.vue is not ideal, at least it works since the method is awaited there.

Commit b17d878 moved this bit of code from Profiles.vue to Manager.vue
since it makes for the latter to handle the state manipulation that
affects its own contents.

However, Vue doesn't await beforeCreate(), which opened up a race
condition where it's technically possible for the updating of the mod
list with an empty array to complete last, causing the view to render
an empty state.

While placing this bit of code in Profiles.vue is not ideal, at least
it works since the method is awaited there.
@MythicManiac MythicManiac merged commit 8ad8c8a into develop Mar 5, 2024
7 checks passed
@MythicManiac MythicManiac deleted the revert-profile-reset-move branch March 5, 2024 18:31
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.

None yet

2 participants