Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: prevent invalid render output for build logs#17233

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Parkreiner merged 2 commits intomainfrommes/owws-tweaks
Apr 2, 2025

Conversation

Parkreiner
Copy link
Member

@ParkreinerParkreiner commentedApr 2, 2025
edited
Loading

No issue to link – fixing this because it was making it harder to diagnose some of the potential problems with our switch over to One-Way Web Sockets in the UI. There were too many extra errors being logged to the console

Changes made

  • UpdatedLine type inLogLine.tsx to support an ID value to prevent key conflicts during React rendering. Also deleted theLineWithID type, which became redundant after the change
  • Updated theLogs component to use the ID to avoid render key conflicts
  • Updated any component calls to add the ID as a prop

Notes

  • This does prevent a bunch of extraconsole.error calls that React will automatically spit out, so this should help us a good bit in the future
  • Beyond being a little annoying, there was a chance (that was tiny for now) that React could accidentally mix up component instances during re-renders (meaning logs could suddenly jump out of order in the UI). That wasn't my main goal with this PR (I just wanted less noisy logs), but that should now be impossible

@ParkreinerParkreiner self-assigned thisApr 2, 2025
cdr-bot[bot]
cdr-botbot approved these changesApr 2, 2025
Copy link

@cdr-botcdr-botbot left a comment

Choose a reason for hiding this comment

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

This PR is a hotfix and has been automatically approved.

  • ✅ Base is main or release branch
  • ✅ Has hotfix label
  • ✅ Head is from coder/coder
  • ✅ Less than 100 lines

@ParkreinerParkreiner changed the titlefix: prevent invalid render input for build logsfix: prevent invalid render output for build logsApr 2, 2025
@ParkreinerParkreiner merged commitc938bfe intomainApr 2, 2025
43 checks passed
@ParkreinerParkreiner deleted the mes/owws-tweaks branchApril 2, 2025 21:32
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsApr 2, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@cdr-botcdr-bot[bot]cdr-bot[bot] approved these changes

Assignees

@ParkreinerParkreiner

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@Parkreiner

[8]ページ先頭

©2009-2025 Movatter.jp