-
This currently works:
But it seems like I should be able to simplify this slightly by using Svelte's reactive statements. Something like this:
But it doesn't work and I get no errors. I appreciate my construction may not be exactly correct but I've tried a few variations. Doing the get without it being wrapped in a debounce works just fine, viz:
Any ideas how I can implement debounce via a reactive statement? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Well, I can do this:
And I can include the whole thing in one reactive block with:
But there seems little benefit in that, and perhaps a downside, as the getUsers function is being declared over and over instead of just once. But any other suggestions are welcome. |
Beta Was this translation helpful? Give feedback.
Well, I can do this:
And I can include the whole thing in one reactive block with:
But there seems little benefit in that, and perhaps a downside, as the getUsers function is being declared over and over instead of just once.
But any other suggestions are welcome.