Accudio / async-alpine

Async Alpine brings advanced code splitting and lazy-loading to Alpine.js components!
https://async-alpine.dev
Apache License 2.0
152 stars 12 forks source link

Fix: Destory existing element tree on reinitialization #38

Closed awcodes closed 8 months ago

awcodes commented 9 months ago

When an async alpine component changes place in a DOM as a result of a backend request, it gets reinitialized without the first instance getting destroyed resulting in duplicated events getting dispatched from the same component.

Accudio commented 8 months ago

Thanks @awcodes! This has been merged and released in v1.2.1 today.

awcodes commented 8 months ago

Really appreciate it.