mobx 6.1.7 → 6.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mobx.esm.js CHANGED
@@ -3427,7 +3427,17 @@ function makeAutoObservable(target, overrides, options) {
3427
3427
  if (target[inferredAnnotationsSymbol]) {
3428
3428
  target[inferredAnnotationsSymbol].forEach(function (value, key) {
3429
3429
  return adm.make_(key, value);
3430
- });
3430
+ }); // Overrides are not cached, unless `true`, see #2832
3431
+
3432
+ if (overrides) {
3433
+ ownKeys(overrides).forEach(function (key) {
3434
+ var annotation = overrides[key];
3435
+
3436
+ if (annotation !== true) {
3437
+ adm.make_(key, annotation);
3438
+ }
3439
+ });
3440
+ }
3431
3441
  } else {
3432
3442
  var _ignoreKeys;
3433
3443