mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 20:34:52 +00:00
In the past, widget implementors would have to subclass the MountWidget component and wire up `didUpdateAttrs` or an observer to trigger a re-render. If that wasn't done, then it could lead to weird behaviors, especially now that page transitions in Discourse do not de-render/re-render components by default. This commit updates MountWidget so that it re-renders whenever any input arguments change.