@atomico/hooks/use-slot
you will be able to observe the state of the slot and know the childNodes of this to manage the logic of the template, example:useEffect
.useSlot(refSlotTemplateUser)
we get the first node of the Template
slot to be used in the iteration of the results obtained by fetch, with this we have eliminated the leverage of the webcomponent in charge of rendering the user at the level of our webcomponent userFetch
Example
cloneNode
property is available from version [email protected]