Hi! Should Stimulus disconnect events fire when you reload a page? For some reason I feel like they used to but do not anymore. This is especially in the context of Hotwire Native apps - earlier I had added some code to a bridge component to clean things up on disconnect, but it seems like this doesn’t fire if you pull to refresh a page. But I don’t know if this ever worked or if I just never tried that case. But I feel like I would have noticed this if it was an issue before… IDK. Would appreciate anyone’s insight and experience on this matter. Thanks!
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Stimulus connect() but does not disconnect()
|
1 | 1121 | September 3, 2022 | |
Debug connect/disconnect events
|
3 | 1856 | October 3, 2018 | |
Lifecycle callback initialize called twice when DOM element is replaced
|
2 | 1767 | October 14, 2019 | |
Stimulus re-connect even with data-turbo-permanent?
|
3 | 1713 | April 23, 2021 | |
Determine if controller has been disconnected
|
3 | 887 | November 20, 2018 |