Skip no-op tab metadata updates
Merged
AZ
3mo ago+62+62+01234567890123456789-0-0-0123456789
Summary
- add a regression test proving no-op tab metadata updates should not invalidate observation readers
- return early from
BonsplitController.updateTabwhen every supplied field matches current metadata
Verification
swift test --filter BonsplitTests/testNoopTabUpdateDoesNotInvalidateObservedTabMetadataswift test
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.
Summary by cubic
Skip no-op tab metadata updates so identical values no longer invalidate observers or mutate state. This prevents needless SwiftUI observation churn and redundant work.
- Bug Fixes
- Early return in
BonsplitController.updateTabwhen all supplied fields match current metadata. - Added regression test
BonsplitTests/testNoopTabUpdateDoesNotInvalidateObservedTabMetadatato ensure observers aren’t invalidated on no-op updates.
- Early return in