Skip to content

Run vue unmounted hook #854

Answered by daun
ercovi asked this question in Help
Dec 22, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

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))

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@daun
Comment options

Answer selected by daun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants