How to wait for transition to finish before loading new page? #9013
-
| 
         See here for the problem: Sandbox I have 2 pages, each with an element that has a transition   | 
  
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
| 
         Removing   | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         I think I have a fix for this issue, but if there is a better or easier way to do this I would love to know. So the idea is to have a store to keep state if the current page needs to play outro, in a shared store. When a page change is triggered, cancel the nav, then trigger the nav again when outro is done playing. See comments in the code sandbox for details.  | 
  
Beta Was this translation helpful? Give feedback.
I think I have a fix for this issue, but if there is a better or easier way to do this I would love to know.
Fix here
So the idea is to have a store to keep state if the current page needs to play outro, in a shared store. When a page change is triggered, cancel the nav, then trigger the nav again when outro is done playing. See comments in the code sandbox for details.