-
Notifications
You must be signed in to change notification settings - Fork 24
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
Ember Data still makes request #19
Comments
Is it a blocking promise or a background reload? Is the issue also present with Overall this is an interesting problem. Background reload does not make much sense on first initial load, but is probably still desired on normal in-app transitions. So disabling it on first route visit might make sense, but I'm not aware of any super easy way of doing it. I guess this also might not be a background reload problem and this is caused because Ember Data cannot tell |
I will try that out and get back to you, thanks!
…On Fri, Sep 14, 2018 at 11:58 AM Martin Malinda ***@***.***> wrote:
Is it a blocking promise or a background reload? Is the issue also present
with shouldBackgroundReloadAll being set to false?
https://www.emberjs.com/api/ember-data/3.4/classes/DS.Adapter/methods/shouldBackgroundReloadAll?anchor=shouldBackgroundReloadAll
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACt1u5AnFkW9EUvLsWzKzYjC7Qtmv2Yvks5ua_xtgaJpZM4WpxsE>
.
|
@MartinMalinda that was it, does it make sense to throw this in the |
Wanted to make sure I record this, because came back to the same issue in another project. peekAll first to grab the cache records, but if none exist then run the query. For some reason shouldBackgroundReloadAll didn't work in the latest ember version 3.7. Also more control with this approach.
|
Issue
Expected
Steps
yarn install
ember serve
localhost:4200
with network tab openObserve
articles
model gets requested.<script type="fastboot/shoebox" id="shoebox-ember-data-store">
in html looks correct.The text was updated successfully, but these errors were encountered: