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(web): wait for all components to be loaded into the components.store before hydrating each view's geometry mapping lazily #5033

Conversation

britmyerss
Copy link
Contributor


via Pusheen on GIPHY

…ore before hydrating each view's geometry mapping lazily
@@ -1846,6 +1847,7 @@ export const useViewsStore = (forceChangeSetId?: ChangeSetId) => {
// then refetch (i.e. there might be updates!)
if (data.toRebaseChangeSetId === changeSetId) {
this.FETCH_VIEW();
componentsStore.FETCH_ALL_COMPONENTS();
this.LIST_VIEWS();
Copy link
Contributor

Choose a reason for hiding this comment

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

It feels like this could cause the same race that was this PR fixes, so it makes sense to make this func async and await these calls too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I had a similar thought too - good shout.

@britmyerss britmyerss closed this Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants