Closed red3 closed 7 years ago
Currently, I am using this:
JSON.parse(JSON.stringify(r));
but I am worrying about its efficiency.
Can you use Object.assign() https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
It seemed that Object.assign() is more efficient without deep clone.
I am trying to do follows:
However, I got this error: Error: Can only set property values within a transaction.
I know this is for auto-updating feature, but I still wonder is there a way to modify a property out a transaction, cause in my business, I need to add a host string to the
icon
property and then return to restfull API service.