mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* fix: hydration panic on camelCased elements
via namespace-aware tag comparison
* add test for hydration involving camelCase svg
Compare tags case-insensitively for HTML elements and case-sensitively
for namespaced elements (SVG, MathML) to match browser behavior.
Use eq_ignore_ascii_case for HTML namespace comparison
* fix: suppress the incompatible_msrv lint for newer rust versions
* fix: clippy warnings
- Allow incompatible_msrv for PanicInfo type (stable since 1.81.0)
- Allow dead_code for test struct Comp
- Remove unnecessary parentheses in closure
---------
Co-authored-by: Matt "Siyuan" Yan <mattsy1999@gmail.com>
Co-authored-by: WorldSEnder <6527051+WorldSEnder@users.noreply.github.com>
Grandchild-with-Grandparent Example
A simple example of updating a grandparent component from two grandchildren using a callback passed down using the context API. The grandchildren themselves also update whenever the grandparent updates the shared state.
Running
Run this application with the trunk development server:
trunk serve --open