Fix early drop of eventhandlers (#2126)
* fix early drop of eventhandlers * add a test for stale props that are memorized in place * fix clippy
This commit is contained in:
1 parent
acbf7dfc4f
commit
0662033c84
7 files changed
+95
-15
No files matched your search
@@ -31,7 +31,7 @@ pub trait Properties: Clone + Sized + 'static {
|
||||
/// Create a builder for this component.
|
||||
fn builder() -> Self::Builder;
|
||||
|
||||
/// Compare two props to see if they are memoizable.
|
||||
/// Make the old props equal to the new props. Return if the props were equal and should be memoized.
|
||||
fn memoize(&mut self, other: &Self) -> bool;
|
||||
|
||||
/// Create a component from the props.
|
||||
|
||||
Reference in new issue
Block a user