react-component / react-component/progress

circle flickers

Open
#250 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
706
Forks
161
Avg merge
3h 29m
Merged PRs (30d)
2

Description

when my countdown gets low, the circle flickers
but only then. when there is more time, it works fine
any idea why?
my code:
const CountdownDisplay = (props) => { if (props.completed) { return <h6>This event has ended</h6>; } return ( <div className="countdownCircle"> <Circle percent={props.total} strokeWidth={4} trailWidth={4} /> <p className="countdownCircle__innerText"> {props.hours + props.days * 24}:{props.minutes < 10 && "0"} {props.minutes}:{props.seconds < 10 && "0"} {props.seconds} </p> </div> ); };

it's called by a countdowntimer

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the provided CountdownDisplay snippet and its Circle component usage, then reproduce the flicker from the countdowntimer when the remaining time is low. Compare the progress value and timer updates near completion, and verify that the circle remains stable as the countdown approaches zero.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.