disconnected¶
disconnected
is a DOM event that occurs whenever any webcomponent in Storefront gets disconnected thus firing the disconnectedCallback Lit lifecycle method.
Event body¶
none
Example¶
In this example we listen to disconnected
event on a product-review
webcomponent and perform an action whenever it's emitted.