Did you know that @Alpine_JS has an undocumented “destroy” lifestyle method that gets called when you remove a component? Just add it to your component the same way you would use
initTry it out here: https://t.co/e1Rwfec9Wl
— Kevin Batdorf (@kevinbatdorf) August 16, 2021
Remember scrollspy from bootstrap? (Remember bootstrap? 🤣) Today I replicated it using @Alpine_JS‘s new x-intersect plugin (V3).
Initially it threw me off because it doesn’t tracking leaving, but then I changed xdata from boolean to a value and💥
— David A. Lindahl (@austriker27) August 6, 2021
This newsletter supported by my GitHub Sponsors.
Here are this week’s Alpine.js adopters:
— Jimmy Aldape (@jimmyaldape) August 10, 2021