Closed scottcorgan closed 9 years ago
Can't find much in the docs on updated nested data. Would it be something like this?
let store = new Freezer({ a: { b: { d: 1 }, c: { e: 2 } } }); let data = store.get(); let newData = data.set({ a: { b: { d: 3 } } }); console.log(newData.a.b.d) // 3
I tried this and it returned an object without the updated keys.
nm, figured it out. Just need to call store.get() again.
store.get()
Can't find much in the docs on updated nested data. Would it be something like this?
I tried this and it returned an object without the updated keys.