Skip to content

Re-initialize component after page transition #817

Answered by WingsOfFury
WingsOfFury asked this question in Help
Discussion options

You must be logged in to vote

It's worked out. I thought I also have to swup.hooks.before("content:replace", () => {} ); maintain it so that it takes effect. Oh man. Difficult birth. With Init at swup.hooks.on is also correct because if I leave out init the dark mode doesn't work. I thank you from the bottom of my heart for your help and your patience, my good friend. Now I can go to sleep with peace of mind. I wish you a good night too.

Bildschirmaufnahme.2023-11-13.um.00.46.34.mov

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@daun
Comment options

daun Nov 12, 2023
Maintainer

@WingsOfFury
Comment options

Comment options

You must be logged in to vote
5 replies
@daun
Comment options

daun Nov 12, 2023
Maintainer

@WingsOfFury
Comment options

@daun
Comment options

daun Nov 12, 2023
Maintainer

@WingsOfFury
Comment options

@daun
Comment options

daun Nov 12, 2023
Maintainer

Comment options

You must be logged in to vote
3 replies
@daun
Comment options

daun Nov 12, 2023
Maintainer

@WingsOfFury
Comment options

Answer selected by daun
@daun
Comment options

daun Nov 13, 2023
Maintainer

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