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

UI fixes #1169

Merged
merged 3 commits into from
Oct 16, 2024
Merged

UI fixes #1169

merged 3 commits into from
Oct 16, 2024

Conversation

0xOlias
Copy link
Collaborator

@0xOlias 0xOlias commented Oct 15, 2024

@@ -19,7 +19,7 @@ export type UiState = {

export const buildUiState = (): UiState => {
return {
port: 0,
port: 42069,
Copy link
Collaborator

Choose a reason for hiding this comment

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

What if port is not this

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It gets updated in service.ts on the first render. The default here should not matter. Happy to change back to 0 to make that more clear actually.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah yeah maybe that would be helpful, or a comment

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just tested - there actually can be a few frames where it renders the default (before server/index.ts finds free port) so I think it's better to use the same default here as in common.options.

@0xOlias 0xOlias merged commit b5992bc into main Oct 16, 2024
8 checks passed
@0xOlias 0xOlias deleted the typedarray/ui-fixes branch October 16, 2024 21:25
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.

2 participants