Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Troubleshooting event subscription not working in a React component #227

Open
2811267153 opened this issue Apr 8, 2023 · 1 comment
Open

Comments

@2811267153
Copy link

I have a click event on element A. Whenever it's clicked, the value of isPlaying is passed to component B via event subscription. However, it's very likely that the event won't be caught and executed by component B. Could you please help me identify the possible reasons for this
image
This is the click event of a component
image
This is the execute function of the component

@mackeee-orange
Copy link

@2811267153 Are there any mounted components that are receiving the same event?
When I faced the same problem, I solved it by isolating the events in such cases.
Well, that is also strange...

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

No branches or pull requests

2 participants