Format seconds correctly #103
Unanswered
philmetzger
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I am trying to format the recordingTime in mm:ss format.
So I have this:
${Math.floor(recordingTime / 60)}:${String(recordingTime % 60).padStart(2, '0')}
However in react, there is a jump every render or so. Anyone know a good solution here?
Seems to only happen when I use a useEffect to start recording:
Beta Was this translation helpful? Give feedback.
All reactions