-
Notifications
You must be signed in to change notification settings - Fork 15
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
model.get('_session.user') is undefined #3
Comments
Yes, I know about this problem. app.get '*', (page, model, params, next) ->
if model.get '_session.loggedIn'
userId = model.get '_session.userId'
$user = model.at "users.#{userId}"
model.subscribe $user, ->
model.ref '_session.user', $user
next()
else
next() |
@vmakhaev thanks for answer, and thank you for this nice module! |
@icaliman you are welcome! |
Just for the records, if you use the |
I have this route:
When page is rendered on the client side
user
is undefined.@vmakhaev can you help me with this issue?
The text was updated successfully, but these errors were encountered: