Replies: 3 comments
-
Hi @odesey, If you're looking for a callback, you can use this:
If you just want to check login as soon as the app loads, you won't be able to. The user is not considered
Does this answer your question? |
Beta Was this translation helpful? Give feedback.
-
I think that your suggestion will solve 1/2 of my question (thanks). The second part is, can I subscribe to a publication (in this case the user account data) without using Currently, I am using the const server = new simpleddp(options, [simpleDDPLogin]);
initFunc = () => {
let userSub = server.subscribe('user');
await userSub.ready();
// more stuff here
} Lastly, how can I handle not being able to connect to my Meteor server when calling Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hey @odesey, Absolutely. The reason you'd usually do your subscriptions in a Our spec works exactly like the Meteor spec. All of the available methods do not require I'm happy to answer any more questions you have: I'm just going to convert this into a discussion since its a Q&A not a bug. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Is it possible to load a user account and subscribe to user account data without using
useTracker
and a component?Similar to https://github.com/gregivy/simpleddp
I have a react-native app, and before the app is loaded I need to see if the user is logged in and then load the appropriate UI.
How can I do this using the
meteor-react-native
package?Thanks.
Beta Was this translation helpful? Give feedback.
All reactions