❓ Using Alpine.js and need to debounce a function?
✅ Just use Alpine.debounce() which is also used internally for the x-on:input.debounce=”” modifier.
— Zep Fietje (@zepfietje) March 17, 2022
neat trick for @Alpine_JS v3. The official way to access Alpinejs scope from outside code is to use Alpine.store() method. However I found this approach ( window.MyData = this ) easier for small code base where using store() is overkill
— Abdurrahman Shofy Adianto (@azophy) March 7, 2022
Here are this week’s Alpine.js adopters:
This newsletter supported by my GitHub Sponsors.
This one was the best find:
- Easy to install with a single script
- 15 attributes, 6 properties, 2 methods. That’s all there is to learn
- Imports data like a champ
- Pairs really well with Tailwind…
— Ray Villalobos (@planetoftheweb) March 7, 2022