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
fork icon13
star icon30
watch icon11

+ 3 other calls in file

-1
fork icon0
star icon1
watch icon0

+ 3 other calls in file