I am trying to figure out how to use an observable array with Mobx.
Itβs hard for me to understand why this is:
let entities = observable([]); entities[0] = "foo"; autorun(() =>{ console.log(entities); });
writes:
[$mobx: Object] 0: (...) 1: (...) 2: (...) 3: (...) 4: (...) 5: (...) 6: (...) 7: (...) 8: (...) 9: (...) 10: (...) 11: (...) 12: (...) 13: (...) 14: (...) 15: (...) 16: (...) 17: (...) ... 999: (...)
Instead of a classic array?
source share