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

Adding middleware with globalEventDistributer as an argument #58

Open
joelephroni opened this issue Nov 16, 2018 · 2 comments
Open

Adding middleware with globalEventDistributer as an argument #58

joelephroni opened this issue Nov 16, 2018 · 2 comments

Comments

@joelephroni
Copy link

How would you pass the globalEventDistributer into middleware as an argument given that the portal gets the store from a store file and the globalEventDistributer is seen first as a prop on root.component? I would really prefer not to have to pass the globalEventDistributer around through the entire component tree... :)

@joelephroni
Copy link
Author

joelephroni commented Dec 10, 2018

Thank you! :) In your wisdom you knew that if you did not answer I would figure it out! Like a true Zen master you teach without teaching... :) I ended up making a combination component/middleware thingy that enables me to dispatch any GLOBAL_[ACTION_NAME] and expect it to be dispatched by the global event distributor. let me know if you want to see it. Peace.

@abbudao
Copy link

abbudao commented Mar 15, 2019

Mind showing it to me?
I'm really interested on having a Middleware for the globalEventDistributer.

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