Tips
❓ Using Alpine.js and need to debounce a function?
❌ You don’t need JavaScript libraries like lodash.
✅ Just use Alpine.debounce() which is also used internally for the x-on:input.debounce=”” modifier.
Cc: @calebporzio
— 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