Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.0.2 #117

Merged
merged 2 commits into from
Apr 25, 2024
Merged

Release 2.0.2 #117

merged 2 commits into from
Apr 25, 2024

Conversation

HeEAaD
Copy link
Contributor

@HeEAaD HeEAaD commented Apr 25, 2024

No description provided.

HeEAaD and others added 2 commits April 25, 2024 10:50
… before c7c79c7 (#116)

c7c79c7 introduced a regression: 
The completion closure of
`UICollectionView.performBatchUpdates(_:completion:)` has a strong
reference to `batchOperation`. This causes that the `batchOperation`
stays longer in memory as the collection view itself.

A symptom of this is that `MainCollectionViewContext.apply(update:)`
might get called while the `adapter` is deallocated already.

This PR restores behavior to the state before
c7c79c7 by just referencing the
`completion` closure instead of `batchOperation`.
@HeEAaD HeEAaD merged commit 59dda67 into master Apr 25, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants