-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API: onMount* methods now default to executing the mount callback whe…
…n you add such modifiers to already mounted elements. - Previously, the mount callbacks would not run in this case. - You can get the previous behaviour by passing `ignoreAlreadyMounted = true` - onMountFocus does not support `ignoreAlreadyMounted = true`, but you can write such a helper manually if needed. - onMountUnmountCallbackWithState now provides the state as A instead of Option[A] by default, because the new default behaviour makes that safe. - Otherwise, the UNmount callbacks are unaffected. onUnmountCallback still does not run until the element is actually being unmounted. Fixes #149
- Loading branch information
Showing
3 changed files
with
152 additions
and
24 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