-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Component#onAdd, Component#onRemove
Currently the onMount abstraction is broken. onMount is being called in two completely different scenarios: 1. The component has been added to a node. 2. The node has been mounted. The same is true for onShow. This commit introduces two methods to solve this issue: 1. Component#onAdd 2. Component#onRemove
- Loading branch information
1 parent
e78d68e
commit c9fd487
Showing
3 changed files
with
52 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters