feat: keyed diffing!!

This commit is contained in:
Jonathan Kelley committed 2021-07-30 16:07:42 -04:00
1 parent 0a0be95c3e
commit d717c22d9c
6 files changed
+494 -236

No files matched your search

+2 -2
View File
@@ -145,9 +145,9 @@ impl Scope {
unsafe { self.frames.reset_wip_frame() };
// Cast the caller ptr from static to one with our own reference
let c3: &WrappedCaller = self.caller.as_ref();
let render: &WrappedCaller = self.caller.as_ref();
match c3(self) {
match render(self) {
None => {
// the user's component failed. We avoid cycling to the next frame
log::error!("Running your component failed! It will no longer receive events.");