Skip to content
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

Get null when calling in a callback #8

Closed
jmimi opened this issue Aug 21, 2016 · 2 comments
Closed

Get null when calling in a callback #8

jmimi opened this issue Aug 21, 2016 · 2 comments

Comments

@jmimi
Copy link

jmimi commented Aug 21, 2016

When I call getCurrentContext in the middleware, it works.
But when I call an async function like fetching from db in the middleware, and calling getCurrentContext in the callback of that async function, I get null

@josieusa
Copy link
Collaborator

josieusa commented Sep 6, 2016

This is the only open issue in loopback-context where my PR #11 had not been mentioned yet.
I'd like to try it on your issue, can you share a minimal example that reproduces your issue?
Follow https://github.com/strongloop/loopback/wiki/Reporting-issues
In short, you could fork loopback-sandbox and add the code required to reproduce your issue.

@bajtos
Copy link
Member

bajtos commented Jan 3, 2017

I am closing this issue as abandoned.

@bajtos bajtos closed this as completed Jan 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants