question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

beware 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:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
internalfxcommented, Jan 3, 2020

I highly recommend upgrading. I even found some performance gains.

It’s about twice as fast now.

0reactions
internalfxcommented, Jan 3, 2020

@kambing86 Version 2.0.0 has been released

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found