Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> well, I'll admit that existance of MobX doesn't help there...

'Doesn't' or 'does'? We've found MobX to really help.



Doesn't, imho of course. MobX makes creating and using global variables way too easy. One of the more nightmarish legacy projects included hunting down the culprit that sometimes changed some variable in mobx store. Abysmall tooling (compared to Redux) doesn't help either.

Currently my go-to store is Redux Toolkit [0]. Explicit store management, but much less verbose than regular Redux. Also, initial state, actions and reducers are all defined in one place (slice).

[0] https://redux-toolkit.js.org/


Thanks, enabling strict mode (requires observable change through an @action only) helps imo.


So have I. MobX + TypeScript has been one of the better experiences I’ve had.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: