Answer the question
In order to leave comments, you need to log in
What is the best way to store responses from the server in local storage in Ember js?
I am currently using the ember-local-storage library.
The problem is that this lib saves only raw data without the Ember Data wrapper.
That is, all the magic of the ember is lost in general)
Tell me, who stores the answers from the server how?
If you describe the problem in a specific example:
There is a list of objects that are needed on almost every screen. An application of such a format that users often enter and leave (that is, the page is updated). I would like to get this list of objects once and save it in the local store and then get it from there (periodically checking if it suddenly changed on the server).
Thank you!
Answer the question
In order to leave comments, you need to log in
It will not be possible to store the record object in local storage. But you can store raw data and put it in the store using the push or pushPayload methods
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question