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: freeze page with gallery #805

Merged
merged 1 commit into from
Nov 6, 2024
Merged

Conversation

giuliaghisini
Copy link

Quando si aveva abilitata l'opzione "updateSideMenuOnLoadingBlocks" per una vista di un content-type, se veniva mostrata una gallery con molti elementi la pagina si freezzava e il browser si impallava perchè il mutation observer veniva reinizializzato di continuo a causa probabilmente dei continui rerender del componente della gallery.

Togliendo la prop "subtree" all'observe dell'observer gli diciamo di rimanere in ascolto solamente i suoi figli diretti (che è quello che a noi interessa per costruire i titoli del menu laterale"

@pnicolli pnicolli merged commit e210bee into main Nov 6, 2024
5 checks passed
@pnicolli pnicolli deleted the fix_freeze_page_with_gallery branch November 6, 2024 14:55
@giuliaghisini giuliaghisini restored the fix_freeze_page_with_gallery branch November 6, 2024 15:00
@mamico mamico deleted the fix_freeze_page_with_gallery branch November 7, 2024 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants