I'm trying to modify the yew tutorial, so as to deselect an list item when clicking it again.
Since the tuto gets #[derive(Clone)] on Video struct, the numerous .clone() get it copied all over, which makes it annoying to properly compare (when there can be distinct entries with identical contents in the list).
Changing this to use Rc<Video> seemed natural: I ought to be able to compare with Rc::ptr_eq.
So as a first step I change to store Rc<Video> as my properties like this, and that builds and runs well enough
Then I go on with my comparisons, and the Rcs always Rc::ptr_eq-compare different.
My best guess is it would come from the cloning of the selected_video "use_state" within the on_video_select callback.
But then, what would be the proper way to go?
Full work in this banch