Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Allow switching to/from masonry mode with loading slider #33

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

davidtaylorhq
Copy link
Member

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.

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.
@davidtaylorhq davidtaylorhq merged commit a697701 into main Aug 4, 2023
3 checks passed
@davidtaylorhq davidtaylorhq deleted the masonry-fix branch August 4, 2023 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants