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

Support not updating Items and HeaderFooters at all if they are equivalent #288

Merged
merged 6 commits into from Aug 8, 2021

Conversation

kyleve
Copy link
Collaborator

@kyleve kyleve commented Apr 10, 2021

This PR updates ItemContent and HeaderFooterContent to support not updating their on-screen content if they are equivalent. This is done by introducing ReappliesToVisibleView, with the option .always and .ifNotEquivalent.

@kyleve
Copy link
Collaborator Author

kyleve commented Jul 5, 2021

Probably will close this out; once https://github.com/square/Blueprint/pull/239/files lands; this is mostly not useful.

@kyleve kyleve closed this Jul 6, 2021
@kyleve kyleve reopened this Jul 31, 2021
@kyleve kyleve force-pushed the kve/support-not-updating-items-if-equiv branch from ecb6608 to 48499b9 Compare July 31, 2021 23:37
…ing-items-if-equiv

* origin/main: (26 commits)
  Prepare 0.23.1
  Fix crash in prepare() because isReordering is set even during scroll invalidations.
  Queue changes while reorder events are settling; so that mutative updates after the edit do not cause crashes within UICollectionView; it does not account for mutations while a reorder is settling.
  Update docs
  Prep 0.23.0
  Add support for setting default HeaderFooter properties via HeaderFooterContent's defaultHeaderFooterProperties.
  Add anyContent on HeaderFooter to match Item.
  Fix changelog reference for 0.22.2 (#301)
  0.22.2 (#300)
  Update docs
  Fix Identifiable conformance in ItemContent.
  Bump Blueprint and release 0.22.0 (#298)
  Update changelog
  Update docs
  Update 0.21.0 version numbers.
  Log a warning when reordering during updates.
  Fix animations when applying updates to visible cells. Fix Xcode 12 build error when creating inline Blueprint items.
  Demo: Payment types reordering
  Support re-ordering between sections. Add additional validation and reading options for re-order events. Improve Identifier to aid in type safety when creating and reading identifiers. See #292 for all changes and discussion.
  Remove spaces from filepaths
  ...
@kyleve kyleve changed the title [DNR WIP] Support not updating Items and HeaderFooters at all if they are equivalent Support not updating Items and HeaderFooters at all if they are equivalent Aug 1, 2021
@kyleve kyleve marked this pull request as ready for review August 1, 2021 00:55
…ing-items-if-equiv

* origin/main:
  Prep 0.23.2
  enable horizontal scroll actions.
@kyleve kyleve enabled auto-merge August 8, 2021 01:01
@kyleve kyleve merged commit a712a21 into main Aug 8, 2021
@kyleve kyleve deleted the kve/support-not-updating-items-if-equiv branch August 8, 2021 02:15
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.

None yet

1 participant