You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because using setInterval in the frontend might be affected by the browser's power-saving policies, causing the interval to pause. So, I'm thinking about adding a timer on the backend and retrieving the progress through callback functions. I'm wondering if this approach would work, or if there's a better way to handle it locally?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Because using
setInterval
in the frontend might be affected by the browser's power-saving policies, causing the interval to pause. So, I'm thinking about adding a timer on the backend and retrieving the progress through callback functions. I'm wondering if this approach would work, or if there's a better way to handle it locally?Beta Was this translation helpful? Give feedback.
All reactions