Category "mobx"

MobX React: Define a observer hook

I'm trying to define my own hooks in a MobX project which depend on mobx observables. But it's not possible to wrap a hook with observer() because observer() mu

When should I use observer in mobx-react?

I'm doing on migration all of my class component to functional component using mobx-react I wonder all of my components should wrapped by observer or not. I gu

Whats the difference between @observable and @observable.ref modifiers in mobx?

Mobx supports both @observable and @observable.ref modifiers and their official doc says observable: This is the default modifier, used by any observable. It

How to change ListTile data with mobx without rebuilding the whole page #Flutter

I am learning the Flutter state management with mobx, and I want to change the context of the dynamic listtile without rebuilding the whole page, I tried observ

React not rerendering after mobx observer change

Upon page load, I see "hi2" When I click the button, nothing happens. I tried with setUser as well. I suspect I'm just editing the props themselves and somehow

How to observe ObservableList item properties changes

I'm building a shopping app in Flutter using MVC pattern and mobx for app state management. At the moment, I have a mobx store for cart items and one store for

Detect when mobx observable has changed

Is it possible to detect when an observable changes in any way? For instance, say you have this: @observable myObject = [{id: 1, name: 'apples'}, {id: 2, name