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
In my render function, I want to render a View depending on whether or not the user is signed in or not. You can do this synchronously via:
{currentUser&&<View>{...}</View>}
How do you achieve this with meteor-apollo-accounts? The only thing I can find is userId, but that is an async value so it doesn't work in the above example. Thanks!
The text was updated successfully, but these errors were encountered:
The same goes for fetching data. In many components, I need to fetch data if there is a user signed in. However, if there is no user, I shouldn't fetch the data. However, again, recompose HOCs do not support async for good reasons.
In my render function, I want to render a View depending on whether or not the user is signed in or not. You can do this synchronously via:
How do you achieve this with
meteor-apollo-accounts
? The only thing I can find isuserId
, but that is an async value so it doesn't work in the above example. Thanks!The text was updated successfully, but these errors were encountered: