Merge pull request #1309 from nicksenger/fix/pure-stateless-components

Fix diffing issue with pure stateless components
This commit is contained in:
Héctor Ramón 2022-04-19 14:45:49 +07:00 committed by GitHub
commit a0ade549a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,6 +70,8 @@ where
})
}
struct Tag<T>(T);
struct Instance<'a, Message, Renderer, Event, S> {
state: RefCell<Option<State<'a, Message, Renderer, Event, S>>>,
}
@ -130,7 +132,7 @@ where
Renderer: iced_native::Renderer,
{
fn tag(&self) -> tree::Tag {
tree::Tag::of::<S>()
tree::Tag::of::<Tag<S>>()
}
fn state(&self) -> tree::State {