Fix Component not diffing when its state is recreated

This commit is contained in:
Héctor Ramón Jiménez 2025-02-14 19:53:11 +01:00
parent ba996f4b01
commit 7526d73ad3
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -266,7 +266,10 @@ where
state: tree::State::new(S::default()),
children: vec![Tree::empty()],
})));
*self.tree.borrow_mut() = state.clone();
self.diff_self();
tree::State::new(state)
}