After I upgraded to 3.8.1 from 3.7.1, my components stopped responding to changes in the mobx stores. Why did it happen?
I have a similar issue. But more precice. The update seems to be delayed for one update cycle.
Tracetable, for example:
initial state 0 -> not shown
update state to 1 -> 0 shown
update state to 2 -> 1 shown
I updated from 3.8.0 to 3.8.1.
Edit: I was wrong. 3.7.1 to 3.8.1
Can you guys create jsFiddle or similar test case to reproduce it please
After inspecting the dist of inferno-mobx, it seems like we have a problem with this build. The makeReactive function is empty, maybe an issue with rollup?:
function useStaticRendering(boolean) {
}
function makeReactive(componentClass) {
return componentClass;
}
thats very possible, rollup was updated between these versions
Yup, this was caused by rollup upgrade. They changed tree shaking algorithm and caused this bug. I will downgrade rollup and make new release.
Its fixed now in 3.8.2 but lets keep this bug open for reference
I really appreciate that the issue is found. I struggle a bit with the jsfiddle example. Here is what I have: https://jsfiddle.net/1kf4ftzc/8/
Currently it doesn't work because. 馃槥 I am still figuring it out. But assuming all the needed functions where available, this would be a fiddle. :)
Maybe we can provide a basic setup for future issues?
0.49.2 fixed some more regressions, btw.
Ideally we should run our tests against the bundle we ship. Currently however we run the tests against typescript sources compiled by typescript compiler, but rollup is not part of this process. Also debugging is really difficult at the moment and I had to fork ts-jest to be able to debug. We used to use Karma for testing which was better than Jest IMO. at least for inferno project. Jest is also bound to js-dom which lacks some functionality. It would be nice if somebody could renew this test setup. I will create new issue for that
Closing this issue now as rollup has fixed it in 0.49.3
Most helpful comment
Its fixed now in 3.8.2 but lets keep this bug open for reference