vugu / vugu

Vugu: A modern UI library for Go+WebAssembly (experimental)
https://www.vugu.org
MIT License
4.8k stars 175 forks source link

Lifecycle method `Rendered` is not called for the root component #208

Open Dadido3 opened 2 years ago

Dadido3 commented 2 years ago

Describe the bug The Rendered(ctx) lifecycle method is not called for the root component. It works for other components though.

Software Versions Vugu version: v0.3.4 Go version: v1.16.6 Browser and version: Firefox 91.0

To Reproduce

Expected behavior There should be two log entries like:

Test component rendered.
Root component rendered.

Additional notes I haven't tested all the other lifecycle methods, so it may not be limited to Rendered().

gpayer commented 2 years ago

In my case the Rendered method of a sub component (inside another component, which is created during routing) is not called.

zoltanmakra commented 2 years ago

@Dadido3 @gpayer Please check this PR: https://github.com/vugu/vugu/pull/228

owenwaller commented 7 months ago

@bradleypeabody

Looks like this is a bug with a PR to fix it. The PR doesn't appear to have been merged ATM.