yew icon indicating copy to clipboard operation
yew copied to clipboard

Cleanup ImplicitClone related stuff in the examples

Open cecton opened this issue 8 months ago • 5 comments

Description

What does this PR do?

  1. Use more cheap-to-clone types in the examples
  2. Some examples got impacted by #3453 (the removal of ToHtml), I fixed them so we can use reference where it makes sense (I added a few IntoPropValue on cheap-to-clone types)
  3. Updated implicit-clone to the latest version
  4. Optimized ChildrenRenderer memory allocations by using Rc

Changes did on the side:

  1. In order to get some example working, I had to change NodeSeq to use IArray. This is good because it is more optimized for memory allocations too
  2. Slightly improve the API of VChild to easily get a ref mut inside its properties object (just for convenience!)

Related to #3453

Checklist

  • [x] I have reviewed my own code
  • [x] I have added tests

cecton avatar Nov 01 '23 17:11 cecton