-
-
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
Implement PartialEq for VChild #1216
Comments
Related, I also noticed that
Which would also imply that the |
Not exactly "broken", it will just always treat component nodes as not equal. This will all be possible when we finish up #830 |
@jstarry thanks for the feedback! Is there anything I can do to help for that issue? I'm using these features while working on a Redux-like Provider component as an experiment for managing global state. |
@kellpossible yes, I think you could but I need to do a bit of housecleaning first. I'll get back to you in a few days on this! |
Hey @kellpossible, I spent some time looking into this and realized I was conflating Do you want to take on this task? Here is an issue for tracking the fix for |
@jstarry okay I'll give it a crack today! |
* #1216 implement PartialEq for VChild * reformat vcomp.rs
I'm trying to use
ChildrenWithProps
in a component, and to implement theComponent::change
method correctly for aComponent
with theChildrenWithProps
in it's properties, however this isn't really currently possible because to derive/implementPartialEq
for the component'sProps
requires theVChild
(in theChildrenWithProps
) implementsPartialEq
.My exact use case can be seen at
https://github.com/kellpossible/coster/blob/5dd0ea17d0501368812c0b9785e54a1afd197ce2/gui/yew-state/src/provider.rs#L80 and
https://github.com/kellpossible/coster/blob/5dd0ea17d0501368812c0b9785e54a1afd197ce2/gui/yew-state/src/provider.rs#L191
The text was updated successfully, but these errors were encountered: