links: Mobx MOC


How to reuse an item from an array

Consider an example where you have a list and want to pick the first one.

If you use shift or splice MST will throw an error

Instead, use detach method

const firstItem = detach(self.randomArray[0])

tags: mobx mst

source: Mobx State Tree Issue