mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 22:38:41 +08:00

If a widget toggles between displaying two different RenderGlimmer instances, the Widget framework treats them as the same, and so `update()` is called rather than destroy/init. This commit detects this scenario and manually destroys/inits to ensure the correct component is being rendered.