react-native-macos/Libraries/BatchedBridge
Janic Duplessis 0cafa0f5d1 Use `warnOnce` for excessive number of callbacks error (#26508)
Summary:
I happened to hit this error a couple times and the issue is that if there are let's say 1000 pending callbacks the error would be triggered 500 times and pretty much crash the app. I think it is reasonable to use warn once here so it only happens once.

## Changelog

[General] [Fixed] - Use `warnOnce` for excessive number of callbacks error
Pull Request resolved: https://github.com/facebook/react-native/pull/26508

Test Plan: Tested by reducing the number of pending callbacks required to trigger the error.

Reviewed By: TheSavior

Differential Revision: D17512917

Pulled By: JoshuaGross

fbshipit-source-id: 5ce8e2a0a166805cc6f3fe6d78e2716d6792a80e
2019-09-23 10:14:51 -07:00
..
__mocks__ Fix typos (#25770) 2019-07-23 03:23:11 -07:00
__tests__ Type StackFrame fields as nullable 2019-07-31 09:08:06 -07:00
BatchedBridge.js xplat/js/react-native-github 2019-08-09 10:11:15 -07:00
MessageQueue.js Use `warnOnce` for excessive number of callbacks error (#26508) 2019-09-23 10:14:51 -07:00
NativeModules.js Preserve the caller's JS stack trace when a type=promise method rejects 2019-06-19 09:15:14 -07:00