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

Fix SPOS reordering crash / header reuse issue + prep 14.0.3 #531

Merged
merged 3 commits into from
Mar 4, 2024

Conversation

kyleve
Copy link
Collaborator

@kyleve kyleve commented Mar 3, 2024

https://block.atlassian.net/browse/UI-5594

Fix a crash that could occur during cell reuse if a list contained different types of headers. The wrong ObjectIdentifier was being compared and stored. I'm surprised this ever worked – but it seems like some timing changed (maybe when we dropped iOS 14?) that this wasn't hit nearly as frequently – it's now pathological for any list with different header types.

Checklist

Please do the following before merging:

  • Ensure any public-facing changes are reflected in the changelog. Include them in the Main section.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actual fix is in here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Note: I'm gonna follow up with an automated test for this, but want to get this landed before branch cut.)

@kyleve kyleve changed the title [WIP] Fix yet another reordering crash Fix SPOS reordering crash / header reuse issue Mar 3, 2024
@kyleve kyleve changed the title Fix SPOS reordering crash / header reuse issue Fix SPOS reordering crash / header reuse issue + prep 14.0.3 Mar 3, 2024
@kyleve kyleve marked this pull request as ready for review March 3, 2024 22:39
[Main]: https://github.com/square/Listable/compare/13.1.0...main
[Main]: https://github.com/square/Listable/compare/14.0.3...main
[14.0.3]: https://github.com/square/Listable/square/14.0.2...14.0.3
[14.0.2]: https://github.com/square/Listable/square/14.0.1...14.0.2
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These weren't added in the prior releases

@kyleve kyleve requested a review from a team March 4, 2024 00:36
Copy link

@sameerg-bit sameerg-bit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@kyleve kyleve merged commit 12b5e65 into main Mar 4, 2024
4 checks passed
@kyleve kyleve deleted the kve/reordering-crash branch March 4, 2024 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants