-
-
Notifications
You must be signed in to change notification settings - Fork 715
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
easily get app-db data in handlers #131
Comments
@jiangts It is an approach will will corrupt the architecture. It sounds like your path middleware is too narrow. Or that the data should be a part of the event dispatched. Or some other design problem. See FAQ item #1 - https://github.com/Day8/re-frame/wiki/FAQ#1-why-cant-i-access-subscriptions-from-event-handlers Also, please note that this is not the place to be asking these questions: |
I read in the readme that I shouldn't include subscriptions in my handlers.
However, I find this a nice thing to do for two reasons:
path
middleware in my handlers, and the extra data I want to use in the handler isn't under that path.Is there a strong reason to not have subscriptions in my handlers?
The text was updated successfully, but these errors were encountered: