I'm just a beginner in MobX. I was trying out the computed properties in MobX and ran into this error
[mobx] Cycle detected in computation Store@1.values: function () {
initializeInstance(this);
return this[prop];
}
I created a store class with an observable computed property. When I tried to use it in a react functional component, it gave me this error. I saw a bunch of github issues that were opened for the same error message but they were all for very specific cases. I understood that it is because the value of the computed property is being accessed before it has been computed at least once. What I could not figure out is how to avoid this situation. I have made a very simple usecase in this link where this error can be reproduced.