ux icon indicating copy to clipboard operation
ux copied to clipboard

[LiveComponent] data-live-ignore and nested elements

Open norkunas opened this issue 3 years ago • 1 comments

Currently when using data-live-ignore on an element, it will be ignored from re-render and also it's all child elements also will be ignored.

I have an use case with a modal, where I have a live action which triggers re-render and I would like to keep the modal open, but that the form in the modal would be re-rendered.

norkunas avatar Feb 04 '22 14:02 norkunas

I was wondering if someone would ask for this :). Yes, this seems reasonable - Livewire also has something like this.

weaverryan avatar Feb 18 '22 00:02 weaverryan

See #519 for the proposal. For a modal, you would use <div data-rerender="children">. This would mean that the parent component is "ignored", but then children re-render via the normal mode of "diffing" the old and new elements via morphdom.

weaverryan avatar Nov 02 '22 15:11 weaverryan