It would be great if we can hook into node add and node remove events to apply custom animations or other processing. Currently we can only hook into before-morph-element or before-morph-attribute. These will not give us access to newly added nodes for custom processing.
Current default Idiomorph callback for beforeAdded:
|
beforeNodeAdded = (node) => { |
|
return !(node.id && node.hasAttribute("data-turbo-permanent") && document.getElementById(node.id)) |
|
} |