Digital PCT265 story DE307-834: Increase throttle time for collision safety. As a throttle this is to space the updates at regular intervals. This should also help reduce some of the page stuttering as there will be bigger update batches.
This commit is contained in:
parent
f001f98d3a
commit
46d57733e4
@ -78,7 +78,7 @@ import Combine
|
||||
return (next.0 ?? accumulator.0, next.1 ?? accumulator.1, next.2?.mergingRight(accumulator.2 ?? [:]))
|
||||
}
|
||||
// Delay allowing the previous model update to settle before triggering a re-render.
|
||||
.throttle(for: .seconds(0.05), scheduler: RunLoop.main, latest: true)
|
||||
.throttle(for: .seconds(0.25), scheduler: RunLoop.main, latest: true)
|
||||
.sink { [weak self] (pageUpdates: [String : Any]?, pageModel: PageModelProtocol?, moduleUpdates: [String : Any]?) in
|
||||
guard let self = self else { return }
|
||||
if let pageUpdates, pageModel != nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user