casesandberg / casesandberg/react-color

Callback fired twice in hooks example

Open
#729 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.3k
Forks
920
PR merge metrics
No merged PRs in 30d

Description

Hello. Thanks for your work!
In hooks example `handleChange` callback called twice.
My assumption because of:
1. For click on color
2. state update -> component update

Contributor guide

Open the contributing guide

Research direction

Start by locating the hooks example and its handleChange callback, then reproduce the issue by clicking a color and observing the state update. Trace whether the click and component update each invoke the callback. Done means the callback fires once for a color change and the example's existing checks still pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.