with multiple objects in it, where each object is it's own store? Is that possible? Like ships[0].setName('My ship') and ships[0].name?
Tony, I have the same question in my project, but did not find an answer. For now I make ships.update(shipsStore => { shipsStore[ID].name = "testtest"; return shipsStore; })
I think it’s possible with your custom factory that will instantiate stores for your array. Another solution - use the array as is and forget about mutable behaviour of objects for your stores and use ‘derived’ with immutable operators.
Обсуждают сегодня