-
Notifications
You must be signed in to change notification settings - Fork 139
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
.find skips the object in the store #117
Comments
How did the item get into the store in the first place? |
It was injected from |
You're seeing this behavior because You can manually set the completedQuery, but that's dumb. Using a User resource as an example: var user = User.inject({ id: 1});
store.store.user.completedQueries[user.id] = new Date().getTime();
User.find(1).then(function (user) {
// no http request was made
}); |
Just took a quick glance at the code. I see that this section object (id: 2) is not in the |
Looks like we've posted pretty much at the same time. Yes, I would like |
I'll come up with a way to make this more configurable. |
I have no doubt you will. 👍 Thank you for being awesome. |
I am using Angular 1.4 with JS-Data 1.6.3 and I am facing a weird situation. I have an object in the data store:
However,
find
for the same object issues an HTTP request to the server instead of retrieving it from DS:What would prevent it from getting the object from the data store first? After all, I am not passing
{ bypassCache: true }
. Thanks.The text was updated successfully, but these errors were encountered: