Add flush() method or clear all states each time on start() method #2971
Thanty
started this conversation in
3. Feature Ideas
Replies: 1 comment 3 replies
-
What's your use case? If you are adding new elements to an existing page they'll get initialised automatically you don't need to call start (and for the reasons you mentioned, you shouldn't). |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Greetings!
Due to our application lifecycle we are in need of calling Alpine.start() manually after switching pages.
Problem is when you call start() it doesn't clear all onAttributeAddeds, onElRemoveds and onElAddeds.
If an element has any x-on events, they are being duplicated.
Is there a chance to clear "Addeds" inside start() or add public flush() method?
https://codepen.io/Thanty/pen/MWQGMMy
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions