S
S
Sergo Sergo2015-04-23 18:03:38
Node.js
Sergo Sergo, 2015-04-23 18:03:38

How to replace currentUser?

I am writing a site on meteor.js, there is an authorization button on the page, it needs to be hidden when the user is authorized.
I do it like this:

{{#if currentUser}}
тут код кнопки
{{/if}}

But if he is authorized, then the button appears for a moment, and then disappears. I know that this is due to the fact that the meteor does not have time to download user information. What can replace this code?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question