Hi all, I am working for a project which use websock and embed-data to fetch data from server.
In some cases, I fetch data changes via websock from server and update the record, like code followed:
whenDataChanges: (data) -> @store.find("comment", data.id).then((comment) -> comment.set('text', data.text) )
When i set property of comment record manually, it’s state become dirty, which make the problem. Because the record comes from the server, I don’t want to call .save() method to remove the state(my request payload is huge).
I searched STO and the forum, found some topics about it:
but them don’t work for my case. How can i remove the dirty state? Thank you all.