Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to unload ALL models in Ember-Data

Ember-Data Store has unloadAll method for unloading records for given type. How to unload records for all types?

like image 484
jaaksarv Avatar asked Nov 17 '25 20:11

jaaksarv


1 Answers

Great question @jaaksarv. According to the Ember Core team, one would use the App.reset() method to:

  1. Clear all the data in the Ember container.
  2. Rebuild the container anew and then route back to the URL.

See Ember Discussion on the matter and for a more complex options see the how-to on the API Docs.

like image 178
Eric D. Johnson Avatar answered Nov 20 '25 16:11

Eric D. Johnson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!