You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vue 3 built-in unMounted/beforeUnmount hooks get called before transitions have ended and it's sadly the expected behaviour.
Splide calls the destroy() method on its instance when the vue beforeUnmount hook gets called.
When we have a transition on our pages we can see the splide get destroyed(slides suddently lose styling ,positioning etc) before the page has finished transitioning and this is not ideal at all.
Reproduction Link
No response
Steps to Reproduce
Create a vue app with router
Have at least two pages with transitions
Put a splide on one of the pages
Navigate from the page with the splide to another one
...
Expected Behaviour
Splide should wait for the transitions to end before destroying.
The text was updated successfully, but these errors were encountered:
I've gone ahead and made a simple PR to address this issue, as I have the same issue. Providing an option to delay destroy action allows us to wait for the transition to end before destroying the carousel. Hope @NaotoshiFujita takes a look 🖖🏻
Checks
Version
0.6.12
Description
Vue 3 built-in unMounted/beforeUnmount hooks get called before transitions have ended and it's sadly the expected behaviour.
Splide calls the destroy() method on its instance when the vue beforeUnmount hook gets called.
When we have a transition on our pages we can see the splide get destroyed(slides suddently lose styling ,positioning etc) before the page has finished transitioning and this is not ideal at all.
Reproduction Link
No response
Steps to Reproduce
...
Expected Behaviour
Splide should wait for the transitions to end before destroying.
The text was updated successfully, but these errors were encountered: