Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Allow switching to/from masonry mode with loading slider (#33)
Having a check for `displayMasonry` in the topic-list component `didInsertElement` hook is problematic because, under the loading slider, the topic-list component may be re-used across different routes. Instead, we can set up the resizeObserver unconditionally. It's cheap to set up, and it only has an effect on topic lists which actually have masonry mode enabled.
- Loading branch information