2021-05-28
3651
#react
Varun Pujari
51372
May 28, 2021 â‹… 13 min read

Using MobX for large-scale enterprise state management

Varun Pujari Software Engineer | IoT Geek | Always ready for a game of chess

Recent posts:

how to use css variables

How to use CSS variables like a pro

By building these four simple projects, you’ll learn how CSS variables can help you write reusable, elegant code and streamline the way you build websites.

Idorenyin Obong
Mar 20, 2025 â‹… 18 min read
Will AI Take Developers’ Jobs?

Will AI take developers’ jobs?

Explore AI’s impact in software development, its limitations, and how developers can stay competitive in the AI-driven industry.

Frank Joseph
Mar 20, 2025 â‹… 5 min read
top ten react native chart libraries

The top 10 React Native charts libraries for 2025

Looking for the best React Native chart library? Explore the top 10 options, compare performance, and find the right tool for your project.

Aman Mittal
Mar 19, 2025 â‹… 7 min read
bash vs zsh

Bash vs. Zsh: Key differences and when to use each

Compare the Bash vs. Zsh shell command languages, explore their differences, and see how to use both successfully.

Wisdom Ekpotu
Mar 19, 2025 â‹… 9 min read
View all posts

4 Replies to "Using MobX for large-scale enterprise state management"

  1. This is amazing tutorial.
    Thank you so much!

    Unfortunately, I didn’t get the main point of using MobX in this exact tutorial. I know it is a tutorial about using MobX but I would like to see the benefits of using MobX here, please.

  2. Thank you. I like idea with private store inside other stores!

    Also, to ANJD, I didn’t get the main point of using Redux from your reply, I would like to see the benefits of using Redux here, please.

  3. What bothers me about this project is this process:
    – The view calls posts and comments APIs
    – APIs fill stores
    – The model refers to stores
    – The view gets the model
    Therefore the view handle the logic of domain services. But this is not its role to know that the comments API have to be called to construct the post model.
    So i think a layer – like a Controller or a ViewModel – is missing to separate the presentation to the logic.

  4. Sorry I didn’t get the point that why we need to keep the Context layer? Can’t we just export/import the store and api directly?

Leave a Reply