mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
16 lines
No EOL
496 B
Markdown
16 lines
No EOL
496 B
Markdown
---
|
|
title: 'You can debounce a function using Alpine.debounce()'
|
|
tweet_id: '1507455555899564032'
|
|
thread_slug: weekly-thread-2022-12
|
|
author_username: zepfietje
|
|
images: { }
|
|
created_at: 2022-03-25T20:33:06+00:00
|
|
slug: you-can-debounce-a-function-using-alpinedebounce
|
|
---
|
|
❓ 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 |