-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Calling Meteor.userAsync inside pub throws an error in meteor 3 beta #307
Comments
Thank you for submitting this issue! We, the Members of Meteor Community Packages take every issue seriously. However, we contribute to these packages mostly in our free time. If you think this issue is trivial to solve, don't hesitate to submit Please also consider sponsoring the maintainers of the package. |
This is now fixed on beta.4! |
Great, going to test it! |
@bratelefant can this be closed? |
Guess yes, didn't come across this issue anymore |
If you call
Meteor.userAsync
inside a publication you get aMeteor.userId can only be invoked in method calls or publications.
To Reproduce
Steps to reproduce the behavior:
meteor run
links
(fromserver/main.js
), which callsMeteor.userAsync()
inside.Expected behavior
It is expected, that this exceptions is not thrown, since
Meteor.userAsync()
is called within a publication.Screenshots
Desktop:
Smartphone:
n/A
Additional context
You can downgrade to 2.14 via
meteor update --release 2.14
and the exception disappears. Also, you canmeteor remove matb33:collection-hooks
and the exceptions disappears.The text was updated successfully, but these errors were encountered: