fix props diffing

This commit is contained in:
Evan Almloff committed 2024-01-10 17:13:56 -06:00
1 parent 5b2b0c43bd
commit dc58212508
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -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,
}
}