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

PubSub does not work under Context API #195

Open
bmalbusca opened this issue Mar 28, 2021 · 4 comments
Open

PubSub does not work under Context API #195

bmalbusca opened this issue Mar 28, 2021 · 4 comments

Comments

@bmalbusca
Copy link

bmalbusca commented Mar 28, 2021

The comm between components stoped after added React's Context API to the project, which provides contexts to the parent nodes of those components that use PubSub.

@mroderick
Copy link
Owner

What is "Context API"?

@bmalbusca
Copy link
Author

Context API is a built-in library from ReactJS that makes possible to share an object/variables, in a form of contexts, directly to other components from the components tree. The oficial docs: https://reactjs.org/docs/context.html

@mroderick
Copy link
Owner

Would it be possible for you to create a reduced example that shows how this is working without Context and how it's not working WITH Context? Perhaps then some React experts might see this and be able to help with this.

I don't work with React.

@bmalbusca
Copy link
Author

Yes, I will post here a simpler example. Thank you @mroderick for your help.

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