Bloomca / veles

UI library with main focus on performance
https://bloomca.github.io/veles/
MIT License
40 stars 0 forks source link

Handle onmount callbacks correctly when render conditionally #26

Closed Bloomca closed 1 month ago

Bloomca commented 1 month ago

Description

The previous implementation of mount handlers was a bit hacky, and also it was not working correctly for 2 reasons:

This PR fixes it and makes it so that we execute mount callbacks right after new nodes are mounted into the DOM.