Instagram / Instagram/IGListKit

Provide clients with (optional) diffing notifications — split up IGListAdapterUpdaterDelegate into finer-grained delegates?

Open
#127 6 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Objective-C
Stars
13.1k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

Internally, we've come across a case where we need to know the results of the diffing. (Specifically, we need to know what was re-ordered in a list.)

We _could_ using the diffing components separately to figure this out, but that doesn't make sense since `ListAdapter` will be "re-doing" this work.

We could add a `nullable id` (or something similar) that clients could set in order to get (optional) updates on the diffing results (i.e., to receive the `IGListIndexSetResult` from `IGListDiffing()`).

We'd add the hook [here](https://github.com/Instagram/IGListKit/blob/master/Source/IGListAdapterUpdater.m#L168) to pass the `result` to the delegate/listener.

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.