-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Partially undo #2673, different approach for the DerefMut impl of VList #2692
Conversation
VList again has a DerefMut implementation the internal fully_keyed state now has an "indeterminate" variant instead of being a bool, this recomputes it during reconciliation
Visit the preview URL for this PR (updated for commit 8b2d8de): https://yew-rs-api--pr2692-vlist-take-two-518v5s88.web.app (expires Tue, 31 May 2022 20:51:28 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
Size Comparison
✅ None of the examples has changed their size significantly. |
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.
Looks good apart from one comment
#[derive(Clone, Debug, PartialEq)] | ||
enum FullyKeyedState { |
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.
This should have a Copy
implementation. Or is there a reason you chose not to add it?
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.
None in particular, except being a little less careful since it's internal. Will add.
Description
VList again has a DerefMut implementation, undoes parts of #2673. The internal fully_keyed state now has an "indeterminate" variant instead of being just a bool, during reconciliation this indeterminate state recomputes the bool from the incoming children.
Fixes #2689
Checklist