mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 03:06:53 +08:00

This commit adds a basic fallback to prevent errors for extensions accessing `helper.widget` when using `api.decorateCookedElement`. The purpose of the fallback is provide access to `.widget.attrs`and `scheduleRerender()` which are common scenarios. Since the call to the callback happens only when rendering the auto mode of the Glimmer Post Stream can't detect the existence of these customizations. The PR also adds a deprecation notice in the console.