Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Sources/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12329,10 +12329,15 @@ private struct TabItemView: View, Equatable {

// Closures, Bindings, and object references are excluded from ==
// because they're recreated every parent eval but don't affect rendering.
// Stored `@Environment` values (like `colorScheme`) are listed here so
// SwiftUI's `.equatable()` guard can compare them — adding an
// `@Environment` property without listing it is the documented
// CLAUDE.md "Snapshot boundary" pitfall.
nonisolated static func == (lhs: TabItemView, rhs: TabItemView) -> Bool {
lhs.tab === rhs.tab &&
lhs.index == rhs.index &&
lhs.isActive == rhs.isActive &&
lhs.colorScheme == rhs.colorScheme &&
lhs.workspaceShortcutDigit == rhs.workspaceShortcutDigit &&
lhs.workspaceShortcutModifierSymbol == rhs.workspaceShortcutModifierSymbol &&
lhs.canCloseWorkspace == rhs.canCloseWorkspace &&
Expand Down