-
Describe your problem 🧐I'm trying to unmount (for the moment, just console log something) a vue component (Test.vue) after page transition, but it never fires. Could be I missing something from Swup, Vue or Astro? What is your question? 🙋♀️Does unMounted runs with using Swup/astro with vue component? URL to minimal reproduction 🔗https://github.com/ercovi/Astro-swup-vue Checked all these? 📚
|
Beta Was this translation helpful? Give feedback.
Answered by
daun
Dec 22, 2023
Replies: 1 comment 1 reply
-
You could hook right before the content is replaced by swup and run your custom logic there.
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
daun
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could hook right before the content is replaced by swup and run your custom logic there.
swup.hooks.before('content:replace', (visit) => console.log(visit))