Open kapouer opened 4 years ago
👋 It is possible that this might detract from performance if we have to add a lot of function calls to the stack. What are your thoughts?
Well, do not call these hooks if they're not defined ? Besides i'm not sure function calls have a huge impact on performance.
If such a hook doesn't perform heavy lifting I don't see how it would impact the performance. It would typically just compare node ids or attribute names to a list and return true or false.
Perhaps such a hook would benefit me in excluding some updates to the class
attribute of my Responsive Components. If you'd glance over the linked article you'd find that theses components style themselves using ResizeObserver
and dynamically updating their class
attribute. IMO this is not a task for morphdom, therefore I have to prevent it from interfering with the class
attribute of such components.
Hi, it'd be nice to be able to control those actions !
Typically i want to merge two nodes but keep original 'custom-*' attributes.