Open Leooo opened 9 years ago
Any chance you could write this as a PR, with some tests? That way we'd be able discuss line by line :D
I think something like this.emberSync.findQuery('post', {id: '27', fetchOnline: false});
would be better because then it complies with ED Store interface.
Also, could you move this code into a PR?
Small piece of code for this, use
or
to get a promise filled with offline store results if any (without fetching the server), otherwise online store results fetched from the server. This can be useful if we want to use localStorage as a cache of user's own data, and reduce the number of requests to the server for records which can only be modified by the user (while still being able to send changes to the server):