Asterius
Asterius
Hmm, that's interesting. How well does mobx-store work with not normalized or deeply nested data structures? Main reason I would use mobx is possibility of having my store composed of...
@mweststrate Just tried out `spy`, and it awesome :clap: Having impression that if there is anything lacking in mobx it is being implemented or will be very soon. Very impressed...
It's still not always working correctly. ``` ts import { action } from "mobx"; function test() { class App { @action fun = () => { "undecorated"; } } const...
Quick update of test case: https://jsfiddle.net/s5hsp8ju/1/ Just switched `_findCycle(nodes[MAX - 2], nodes[MAX - 1])` to `_findCycle(nodes[MAX - 1], nodes[MAX - 2])`. first one could work with first approach if we...
Now, that I run mobx with my quickfix, findCycle is unnoticeable in timelime, so no pressure to get rid of it in production. It's also nice to get an elegant...
Does this fix it? ``` mobx.transaction(() => { updateList.forEach(function(item) { self.dataMap.set(item.id, item); }); }) ``` From what I've seen this is how merge/constructor is implemented itself.
Hmmm being able to expose API for checking if observable is depended on by any reaction would be the equally complex to implementing option `2.` For creating Atom that would...
@mweststrate This maybe could be useful in many cases, but the possible scenario then is: ``` javascript const a = new Atom(...) const b = computed(() => a.get()) let dispatch...
Then I'll quickly finish up implementing first solution and update PR before you merge
Couldn't reproduce. For me everything behave as you would expect at the beginning. Could you link a fiddle or something showing error?