mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
## Changes made - Updated `Line` type in `LogLine.tsx` to support an ID value to prevent key conflicts during React rendering. Also deleted the `LineWithID` type, which became redundant after the change - Updated the `Logs` 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 extra `console.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. That wasn't my main goal with this PR (I just wanted less noisy logs), but that should now be impossible