1
0
Fork 0
mirror of https://github.com/Dimillian/IceCubesApp.git synced 2025-04-28 10:54:43 +00:00

Fix timeline reducer fix

This commit is contained in:
Thomas Ricouard 2025-04-10 08:40:08 +02:00
parent 6e4d4b5b8c
commit bef4457804

View file

@ -113,6 +113,7 @@ public struct TimelineView: View {
}
}
.onChange(of: timeline) { oldValue, newValue in
guard oldValue != newValue else { return }
switch newValue {
case let .remoteLocal(server, _):
viewModel.client = Client(server: server)
@ -130,7 +131,8 @@ public struct TimelineView: View {
}
viewModel.timeline = newValue
}
.onChange(of: viewModel.timeline) { _, newValue in
.onChange(of: viewModel.timeline) { oldValue, newValue in
guard oldValue != newValue, timeline != newValue else { return }
timeline = newValue
}
.onChange(of: contentFilter.showReplies) { _, _ in