This repository has been archived by the owner on Sep 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sticky): Refactored logic to better calculate exit/enter/(in|re)a…
…ctivations - Made the code mirror the requirements statement... inactive children of exited states are exited. Inactive children of deepest state reactivation are exited, if transitioning directly to that reactivated state (the children are considered orphaned). - If a new view is being created (parent1.child2), the $view.load() method fires $viewContentLoading. - Then, the inactive views (parent1, parent1.child1) try to update. - The $state.$current is not updated to the target state (parent1.child2) yet - UI-View gets "previousLocals" from $state.$current.locals and the old state doesn't have the proper locals - UI-View rebuilds itself - The fix involves registering the reactivating states locals temporarily in a parent-to-the-inactivePseudoState.locals. ugh. Closes #131
- Loading branch information
1 parent
f983d95
commit 43be5d9
Showing
5 changed files
with
144 additions
and
87 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
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
Oops, something went wrong.