-
Notifications
You must be signed in to change notification settings - Fork 28
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
Content Updated Changes #196
Conversation
self.coordination.coordinator.wasCreated() | ||
/// Now that we are set up, notify callbacks. | ||
|
||
self.model.onInsert?(.init(item: self.model)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to be in the update callback
@@ -281,7 +301,8 @@ extension PresentationState | |||
|
|||
func wasRemoved() | |||
{ | |||
self.coordination.coordinator.wasRemoved() | |||
self.model.onRemove?(.init(item: self.model)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs updateCallbacks
moved: { old, new, changes, section in section.update(with: old, new: new, changes: changes, dependencies: dependencies) }, | ||
noChange: { old, new, changes, section in section.update(with: old, new: new, changes: changes, dependencies: dependencies) } | ||
removed: { _, section in | ||
updateCallbacks.add { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pass in instead
@@ -853,6 +865,38 @@ public final class ListView : UIView | |||
} | |||
|
|||
|
|||
public final class UpdateCallbacks { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test me
b304a17
to
a59f3ec
Compare
No description provided.