EmitJSEvent starvation? #14003
-
I'm using EmitJSEvent to funnel messages from my grpc C++ code up to my react native view and it works, but if I calll EmitJSEvent too quickly some messages get dropped. This is bad in my case because the messages represent xbox game pad state, and dropping events is not an option. Is EmitJSEvent consolidating events of the same type? Can I stop that? Is there a way to force the dispatch of EmitJSEvents to keep up with the rate at which I'm sending them? Or another way to ask the question, is there a way to increase the size of the dispatch queue? Or is there a way to "wait" for the event to be handled before calling the next EmitJSEvent ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I don't think it's intentional that these events would be coalesced. This sounds like a bug. Can you open a bug on the repo that includes more details about your repro? |
Beta Was this translation helpful? Give feedback.
-
Thanks for confirming, sounds like you are saying there is a dispatch queue and no coalescing - so presumably the queue is infinite size or does it start dropping events after some number of pending dispatches? I will try and create a smaller repro. |
Beta Was this translation helpful? Give feedback.
I don't think it's intentional that these events would be coalesced. This sounds like a bug. Can you open a bug on the repo that includes more details about your repro?