You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, @CaptainN, any thoughts on this one?
Also, @dnish, can you provide a snippet of code so that anyone who may find this same issue may relate? thx a lot for reporting 🙏
I guess the main problem is that Meteor.userId() is only callable within the context of a publish or method. In this case, it is not available within the onPageLoad handler. This one gives an error:
Hey,
when adding the
useUserId()
hook to my component, I get the following error:We are running the latest Meteor version with React 18.
The text was updated successfully, but these errors were encountered: