Instagram / Instagram/IGListKit

Multiple ListBindingSectionController updates in quick succession makes completion block fail

Open
#1,234 4 comments 7 reactions 0 assignees View on GitHub
bug question
Dominant language
Objective-C
Stars
13.1k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

I have real time updates to the data within my `ListBindingSectionController`. This involves retrieving data from a server, updating local variables, then calling `self.update(animated: false)`.

Sometimes a race condition occurs with data retrieved from the server and the calling of `update(animated:)` which forces the last `update(animated:)` call to not complete. This leads to inconsistencies within the section controller. Is there any way to make sure that all updates will be completed, like queueing them?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.