Skip to content
This repository has been archived by the owner on Apr 2, 2018. It is now read-only.

Stop after 2k warnings #38

Open
aj0strow opened this issue May 15, 2017 · 0 comments
Open

Stop after 2k warnings #38

aj0strow opened this issue May 15, 2017 · 0 comments

Comments

@aj0strow
Copy link

I tried with a slow React Native app receiving websocket data. After a few seconds and nearly 5,000 warnings it froze my laptop.

I'd like to pull request with a fix. Some ideas:

  • Warn once per component.
  • Debounce warnings in the notifier.
  • Set hard limit at 2k messages.

It could be opt-in, via option.

whyDidYouUpdate(React, {
    cutoffLimit: 2000,
})

whyDidYouUpdate(React, {
    oncePerComponent: true,
})

// etc
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant