How to use the isObservableProp function from mobx
Find comprehensive JavaScript mobx.isObservableProp code examples handpicked from public code repositorys.
998 999 1000 1001 1002 1003 1004 1005 1006 1007
this.__repository = options.repository; this.abortController = new AbortController(); // Find all attributes. Not all observables are an attribute. lodash.forIn(this, function (value, key) { if (!key.startsWith('__') && mobx.isObservableProp(_this2, key)) { invariant(!FORBIDDEN_ATTRS.includes(key), 'Forbidden attribute key used: `' + key + '`'); _this2.__attributes.push(key); var newValue = value; // An array or object observable can be mutated, so we want to ensure we always have
13
30
11
+ 3 other calls in file
mobx.runInAction is the most popular function in mobx (1598 examples)