Skip to content

Commit

Permalink
Fix Component not diffing when its state is recreated
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Feb 14, 2025
1 parent ba996f4 commit 7526d73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions widget/src/lazy/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 7526d73

Please sign in to comment.