Improve Vite HMR [SYNTH-231] - #1427
Merged
Merged
Conversation
AlexD717
approved these changes
Jul 21, 2026
AlexD717
left a comment
Member
There was a problem hiding this comment.
Tried editing a few panels and they all successfully hot reloaded. Minor complaint if you want to go in and fix it.
Co-authored-by: Alexey Dmitriev <157652245+AlexD717@users.noreply.github.com>
azaleacolburn
requested changes
Jul 21, 2026
azaleacolburn
left a comment
Contributor
There was a problem hiding this comment.
Unfortunately, this PR makes more than one change, so I can't approve it. Please use Claude to automatically open new sub-PRs next time /j
Co-authored-by: Azalea Colburn <62953415+azaleacolburn@users.noreply.github.com>
azaleacolburn
approved these changes
Jul 22, 2026
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task
SYNTH-231
Symptom
Often when developing and changing UI features, the whole screen goes white or reloads. This is obnoxious and makes UI development slow and tedious
Solution
Fixed the exporting issues that were breaking HMR, as well as restructuring
Worldto be a singleton instead of a fully static class andScoreTrackerto be a system of WorldVerification
You can edit UI elements with robots spawned and panels open and have nothing bad happen but changes appear.
Note that not all things continue to work seamlessly. For example, spawning robots before and after is a little suspicious. This PR is not attempting to solve that, the purpose of this change is to improve the developer experience of editing UI elements.
If you are able experience crashing / white screening, however, please do let me know
Before merging, ensure the following criteria are met: