ga-wdi-boston / ember-auth

Other
2 stars 98 forks source link

Clear store cache on sign-out #5

Closed jrhorn424 closed 7 years ago

jrhorn424 commented 8 years ago

If two users have access to different data (say, through ownership), a developer may think there is a bug in the backend when the other users' data is displayed. That's because the in-memory data store is not being reset.

Add this somewhere after the sign-out action, probably in a then().

this.store.unloadAll();

Thanks http://emberigniter.com/clear-ember-data-store/

gaand commented 8 years ago

@jrhorn424 I believe this is taken care of in the merge from @faetea