yew/examples/communication_grandchild_with_grandparent
Siyuan Yan 93e862b1d0
fix: hydration panic on camelCased elements (#3876)
* 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>
2025-08-08 13:10:44 +00:00
..
2022-09-11 15:39:29 +09:00
2025-03-02 23:56:22 +09:00

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