-
Greetings! I have a store class, configured strictly, and class member function with argument to get values from Map based class field (TodoStore in the example). I use this function in a component, and get the "Derivation is created/updated without reading any observable value. " (TodoList in example) If I use alike function to get values from array based class field, it's all OK. (You can uncomment getToDoFromArray in example) So, I would prefer to use strictly configured store and Map based class field, am I doing something wrong? Is it any right way to do so without getting that warning? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The warning means you either forget EDIT: consider using eslint-plugin-mobx |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
The warning means you either forget
observer
somewhere or you forget to make somethingobervable
. In your case it's the latter - you're missingtodosMap: observable
inmakeObservable
EDIT: consider using eslint-plugin-mobx