mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 06:40:23 +08:00

When using the loading-slider, the component instance is re-used across different pages and so the didInsertElement/willDestroyElement hooks are not fired during page transitions. Instead, we can lean on `didReceiveAttrs`. Similar fix to 87b98e2862 Note that the `scrollTop` feature is still problematic under the loading slider. That will need to be addressed in a future commit.