Replies: 1 comment 10 replies
-
Hi @jerielng, thanks for the question and I am happy that you are finding the guide useful. 😄 I don't have a specific pointer right now. When you say 50% of the time, you mean that it systematically sends one event and the next one make the app crash or that every time you launch the app there is a 50% chance that the Can you share a PR or a repro we can use to investigate the issue? |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm following this guide here to port my RCTEventEmitter logic to support both the old architecture and the New Architecture. This is really helpful, @cipolleschi, thank you so much!
It seems to work pretty well, and when compiling with the old architecture, everything works as before. It's also registering and observing events when compiled as a Turbo Module as well, but I'm noticing about 50% of the time in the Turbo Module case, I'm getting crashes when calling
sendEvent
because_callableJSModules
isnil
in my RCTEventEmitter.Specifically, it appears to be triggered by this assert here:
I haven't overridden the synthesized
callableJSModules
in my Turbo Module, but noticed that if I did, the crash happens 100% of the time.Do we have any thoughts on what might be causing this to happen some of the time?
Beta Was this translation helpful? Give feedback.
All reactions