fix props diffing
This commit is contained in:
1 parent
5b2b0c43bd
commit
dc58212508
2 files changed
+4
-4
No files matched your search
@@ -63,8 +63,8 @@ impl<P> VProps<P> {
|
||||
|
||||
impl<P: Clone + 'static> AnyProps for VProps<P> {
|
||||
fn memoize(&self, other: &dyn Any) -> bool {
|
||||
match other.downcast_ref::<Self>() {
|
||||
Some(other) => (self.memo)(&self.props, &other.props),
|
||||
match other.downcast_ref::<P>() {
|
||||
Some(other) => (self.memo)(&self.props, other),
|
||||
None => false,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user