Skip to content

Any gotcha's or considerations needed for Turbolinks/Turbo? #139

Answered by keithamus
swanson asked this question in Q&A
Discussion options

You must be logged in to vote

I think @jacob-carlborg-apoex's comment about ShadowDOM is some great insight.

One thing that may happen more as a consequence of Turbo is elements' lifecycle methods are called more frequently. I'm especially thinking about disconnectedCallback. It might surface errors more prominently if you have components which error on disconnectedCallback, that you weren't seeing before because this was happening during a page unload. In addition if you're manually binding events (rather than using actions) and not cleaning them up in the disconnectedCallback, you might start to see errors there, as these elements live beyond a "page" lifetime.

To the best of my knowledge though, there are no proble…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by swanson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants