Skip to main content

Questions tagged [debouncing]

Debouncing ensures that a handler is not executed too often for an event that may be happening several times per second.

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 ...
jaheraho's user avatar
  • 510
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 ...
ddosmiko's user avatar
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. ...
sudoExclamationExclamation's user avatar
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 ...
codercret company's user avatar
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, ...
Vansh's user avatar
  • 1
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 (...
f3dm76's user avatar
  • 782
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. ...
mohsin_jamshaid's user avatar
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. ...
me.at.coding's user avatar
  • 16.6k
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); ...
Kartar Singh's user avatar
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 ...
Ernesto's user avatar
  • 944
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 ...
Akio's user avatar
  • 1
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 ...
aftab's user avatar
  • 15
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 ...
Low Pre Intern's user avatar
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>) =...
Kiszuriwalilibori's user avatar
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: ...
Azeez's user avatar
  • 455

15 30 50 per page
1
2 3 4 5
48