Category "setinterval"

Continuously Fetch API For new data React Fetch

I've a dynamic json that changes value continuously. i want to draw chart with that data so i stored the dynamic data to array then draws chart with that array.

PWA with React: Trying to create a object that updates every second and is accessible for many components

I'm currently working on a PWA build with React. I'm looking for a way to create one object which contains information like the current time (incl. seconds), cu

React Redux state is not being updated when using useSelector inside useEffect

I'm new to react and when I'm updating my state in redux, I'm no able to see my state updated in my component inside a setInterval, despite the state in redux i

useinterval in react (polling request)

I've created a simple react (nextjs) app that sends some data to a backend server. While the data are being processed the react app keeps track of the progressi

Trying to use setInterval to make a throttling function unsuccessfully

I am trying to return a function that only invokes a callback function 'func' once per every 'wait' milliseconds. Additional calls to the callback 'func' within

Why is setInterval making infinite loops

I'm trying to set a timer so it display the seconds and min left of an user and I'm using setInterval to get the seconds and if there are 60 seconds it will red

Use Ajax in Fat free framework to render route every 5 seconds

I need for help in fat free I want to use ajax to render to a specific route every 5 seconds But I can't console any data the ajax page and this is my php code

Javascript vertical scrolling function

I am trying to detect a scroll on my page using JavaScript. So that I can change classes and attributes of some elements when user has scrolled certain amount o

Is there a workaround for Firefox 5 and Chrome ”setInterval()” and “setTimeout()” in inactive tab

There is a JavaScript optimization that causes inactive tabs to slow down setInterval() and setTimeout()` in Firefox 5 and Chrome. I have it set for 66 miliseco

Execute the setInterval function without delay the first time

It's there a way to configure the setInterval method of javascript to execute the method immediately and then executes with the timer