You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Believe I found a bug related to optionally storing models in the modelStore.
this.app.fetcher.fetch(
{
user: {model: 'Account',}
},
{
'readFromCache': false,
'writeToCache': false //handle this manually in the success method (handleLoginResponse)
},
this.handleLoginResponse.bind(this)
);
If we set a breakpoint in this.handleLoginResponse we will find that this.app.fetcher.modelStore.cache has an entry for the Account model. If you check shared/fetcher.js we see the option to skip the write to cache is respected. However if we look at line shared/base/model.js in the model is still written to the store.
The text was updated successfully, but these errors were encountered:
jaredrada
changed the title
setting
setting writeToCache: false still writes models to cache
Jan 12, 2016
Believe I found a bug related to optionally storing models in the modelStore.
If we set a breakpoint in this.handleLoginResponse we will find that this.app.fetcher.modelStore.cache has an entry for the Account model. If you check shared/fetcher.js we see the option to skip the write to cache is respected. However if we look at line shared/base/model.js in the model is still written to the store.
The text was updated successfully, but these errors were encountered: