Questions tagged [debouncing]
Debouncing ensures that a handler is not executed too often for an event that may be happening several times per second.
debouncing
714
questions
1
vote
1
answer
41
views
RxJS alternative to debounceTime operator, so items won't get collected?
RxJS pros out there, I need your help!
Based on my last question I'm now looking for something different:
Question: How to separate values of a stream, keep the last of each and force flush after a ...
0
votes
0
answers
119
views
Debounce with useSWR
I am using useSWR.
Sometimes the application fetches data twice, even though none of the fetchOptions have changed.
My code:
export function ApiProvider({
method = "GET",
path, // string
...
2
votes
2
answers
117
views
In Swift, how to send network requests upon tap such that each request has a few seconds delay in between?
I have created this simple example to show the issue.
I have 4 buttons for upvoting, favouriting, flagging, and hiding. User can tap any button whenever they like and as many times as they want. ...
0
votes
0
answers
94
views
How to Optimize Search Query Handling with React Query v5 Library?
I'm currently working on implementing a search functionality using the React Query library in my application. While I have a basic implementation in place, I'm seeking advice on how to optimize the ...
0
votes
1
answer
38
views
React + FabricJS: Custom Scrollbar - Flickering Scroll Thumbs on zoom in/out state update
I made a Custom Scrollbar for FabricJS (Since they don't provide one). Everything seems to be working fine. The thumbs of the scrollbar do change their height and width when the zoom state updates, ...
2
votes
2
answers
91
views
Pass generic type T through withCheckedContinuation
I have a search for multiple types, so the general search method has a generic type T, and multiple simple methods call it specifying the type as needed. I'd like to delay search method's start (...
0
votes
0
answers
120
views
Debounce Slim Select Search Event with Stimulus Controller Ruby on Rails
Question forum on slim-select: https://github.com/brianvoe/slim-select/discussions/541
Hi, I'm using Ruby on Rails with Stimulus JS and have been using slim select for the past 6 months in my project. ...
0
votes
1
answer
75
views
How to remove AutoSuggestBox delay / debounce?
While using the AutoSuggestBox in e.g. the WinUI 3 Gallery app, I noticed that there is some kind of debouncing on the input. So if one types fast, the results are not updated until one stops typing. ...
0
votes
1
answer
40
views
Facing Issue in Debouncing concept in react
import React,{useState} from 'react';
const app = () =>{
const [inputValue,setInputValue] = useState();
const handleChange = (e)=>{
setInputValue(e.target.value);
...
0
votes
0
answers
7
views
JavaRX buffering from many kafka topics and fault tolerancy
I am consuming from couple of kafka topics within JavaRX. I have groupping per key + 3s buffer window. I dont know how to 'not' commit message which is inside buffer window process and another message ...
0
votes
0
answers
22
views
How to debounce each iteration in the loop
I'm using lodash debounce function. My problem is that I don't know how to properly use debounce within for of loop so it debounces every iteration separately, not all loop at once.
Here is code of ...
0
votes
1
answer
129
views
How to implement debounce in React textarea?
I try to add debounce to handleInputChange in my React component. When user types in textarea, is shouldn't constantly rerender (I check it by console.log(commentBody), but maybe I'am wrong, I'm not ...
0
votes
1
answer
314
views
How to correct call API search request with debounce?
I tried to setup correct API call with debounce. Now I have function in ViewModel which call API search request with delay (debounce) and unique (latest) value, but as many as there are changes in the ...
0
votes
0
answers
22
views
In React component can not debounce handleChange
I try to implement simple delay-typing functionality in React component
What is working but still without debounce:
const handleChange = useCallback(
(ev: ChangeEvent<HTMLInputElement>) =...
0
votes
0
answers
20
views
React Debounce calling multiple time onPress event in class component
I am using react class component but the issue is If I am clicking multiple time on the button the alert is triggering being multiple time. Any help will be appreciated.
class EventController {
timer: ...