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

Active development? #4

Open
Sigfried opened this issue Nov 28, 2016 · 3 comments
Open

Active development? #4

Sigfried opened this issue Nov 28, 2016 · 3 comments

Comments

@Sigfried
Copy link

Hi. This looks like exactly what I need, but it doesn't seem to be widely used or to be under active development. Do you recommend using it or is there another library that might be a better bet? Thanks!

@Sigfried
Copy link
Author

Seems to be some good advice here: http://andrewhfarmer.com/component-communication/#6-observer-pattern -- for anyone with the same question I have.

@stecb
Copy link
Collaborator

stecb commented Nov 28, 2016

Hi @Sigfried . I'm actually using it on https://timerepublik.com but we (+ @cef62 ) are not actively developing it (also 'coz I don't need any more customisations). You can try it (it's been intensively tested by Matteo), and if you want you can contribute to it.
Otherwise, there's something ~ similar here https://github.com/ReactTraining/react-broadcast

@Sigfried
Copy link
Author

Thanks, @stecb !

It turned out super easy for what I wanted to do by using EventEmitter. A two-line module (https://github.com/Sigfried/drugutil/blob/master/src/EventEmitter.js) that I import from whatever modules I want to publish or subscribe from. The emitter object is accessible anywhere like a global variable, but I didn't need to make an actual global variable or pass things all over or use react context (which seems scary).

Thanks so much, though!

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