Skip to content

Fix UI plugin race conditions#5523

Merged
WithoutPants merged 2 commits intostashapp:developfrom
WithoutPants:issues/5124
Dec 2, 2024
Merged

Fix UI plugin race conditions#5523
WithoutPants merged 2 commits intostashapp:developfrom
WithoutPants:issues/5124

Conversation

@WithoutPants
Copy link
Collaborator

Moved plugin loading code into plugins.tsx and changed so that the app does not render until the plugin javascript files are loaded and parsed. This should resolve the race condition described in #5124.

Resolves #5124

@WithoutPants WithoutPants added the bug Something isn't working label Dec 2, 2024
@WithoutPants WithoutPants added this to the Version 0.28.0 milestone Dec 2, 2024
@WithoutPants WithoutPants merged commit a0e09bb into stashapp:develop Dec 2, 2024
XGFan pushed a commit to XGFan/stash that referenced this pull request Jan 16, 2025
* useScript to return load state of scripts
* Wait for scripts to load before rendering

Also moves plugin code into plugins.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Race condition in registerRoute

1 participant