state issue
See original GitHub issuebeware when opening this link, cpu runs at 100% in the service worker
https://codesandbox.io/s/distinct-colors-state-issue-iufog
calling 2 times with same config is ok
console.log(distinctColors({ count: 26, lightMin: 50 }));
console.log(distinctColors({ count: 26, lightMin: 50 }));
but calling with different config will cause cpu runs at 100% and never return value
console.log(distinctColors({ count: 26, lightMin: 50 }));
console.log(distinctColors({ count: 26, lightMax: 50 }));
EDIT: calling only either one of them is totally fine
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Policy Issues - United States Department of State
We prioritize anti-corruption and seek to make it even harder for criminality and terrorism to take root and spread, to promote governments that...
Read more >State Issues - AALL - American Association of Law Libraries
AALL works with chapters and individuals to ensure greater access to government information at the state level and to advocate on a number...
Read more >State issues | The Hill | Page 1
The latest State issues news information brought to you by the team at The Hill:
Read more >Statewide Issues - Ohio Secretary of State
In addition to certifying the following State. Issues for the General Election occurring. November 8, 2022, R.C. 3505.062(G) and Ohio. Constitution Article II, ......
Read more >Top 21 Issues for States in 2021
The coronavirus pandemic that hit the United States in early 2020 brought unprecedented challenges to the both the federal government and ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I highly recommend upgrading. I even found some performance gains.
It’s about twice as fast now.
@kambing86 Version 2.0.0 has been released