I have a
div that is marked as
data-turbo-permanent and it is also attached to a stimulus controller.
When navigation occurs, the content of the
div is correctly preserved. However, I am seeing
connect events firing from the Stimulus controller.
Is this the desired behavior? If so, I could totally see the reasoning (e.g. the element is removed from the dom and re-inserted), just wanted to confirm.
Has anyone found a way to override this? I have some side effects in my
connectfunction (fetching data) that I do not want to duplicate.