Skip to content

Conversation

@miles-grant-ibigroup
Copy link
Collaborator

The switch button was doing everything correctly, but because didn't wait for dispatches to finish, had an internal race condition that sometimes resulted in it not planning the new trip.

This PR fixes this.

@daniel-heppner-ibigroup
Copy link
Contributor

All you needed to do was make this return a promise? Does that mean this was originally the intended functionality but wasn't working properly?

@miles-grant-ibigroup
Copy link
Collaborator Author

I think some change must have happened somewhere that allowed the race condition to occur? But yes I do believe that this was the intended functionality.

@miles-grant-ibigroup miles-grant-ibigroup merged commit 5d234fd into dev Nov 23, 2021
@miles-grant-ibigroup miles-grant-ibigroup deleted the repair-switch-button branch November 23, 2021 09:41
@github-actions
Copy link
Contributor

🎉 This PR is included in version 3.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

4 participants