- πΊπΈUnited States xpersonas
This would be extremely useful. I was hoping these events already existed, but I guess they do not. I'm currently debating how to handle a slider. Without an event, I may just have to add the text "Please save this page to see updated component." which isn't the bet UX for the admin.
- Status changed to Closed: works as designed
28 days ago 6:49am 7 March 2025 - πΊπΈUnited States pixelwhip
I think this behavior belongs in the JS of the layout itself.
Rather than listening for a custom event provided by Layout Paragraphs, I'd recommend writing a MutationObservor and calling the reflow, rerender, refresh etc. whenever attributes or the subtree change. This approach would not require extra API surface in Layout Paragraphs, use existing browser functionality and will work with whatever conceivable thing that might dynamically alter the layout client side β not just Layout Paragraphs.