News for hackers. Stuff that matters.
Re:MobX 6 by cnasc on Friday October 02, 2020 @07:02AM (#24661308)
> Singleton isn't bad if it is used only for reading the data. Mutable global state is the problem.

If it’s read-only, you can just declare it as a constant. No need to add a state management library.

Re:MobX 6 by brulard on Saturday October 03, 2020 @08:26PM (#24675742)
Read-only != constant. State management library can provide you with globally readable state represented by stream of immutable values.