mobx 6.13.2 → 6.13.3

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.
@@ -705,12 +705,19 @@ function decorate_20223_$1(mthd, context) {
705
705
  var _ann$options_$name, _ann$options_, _ann$options_$autoAct, _ann$options_2;
706
706
  return createAction((_ann$options_$name = (_ann$options_ = ann.options_) == null ? void 0 : _ann$options_.name) != null ? _ann$options_$name : name.toString(), m, (_ann$options_$autoAct = (_ann$options_2 = ann.options_) == null ? void 0 : _ann$options_2.autoAction) != null ? _ann$options_$autoAct : false);
707
707
  };
708
- // Backwards/Legacy behavior, expects makeObservable(this)
709
708
  if (kind == "field") {
710
- addInitializer(function () {
711
- storeAnnotation(this, name, ann);
712
- });
713
- return;
709
+ return function (initMthd) {
710
+ var _ann$options_3;
711
+ var mthd = initMthd;
712
+ if (!isAction(mthd)) {
713
+ mthd = _createAction(mthd);
714
+ }
715
+ if ((_ann$options_3 = ann.options_) != null && _ann$options_3.bound) {
716
+ mthd = mthd.bind(this);
717
+ mthd.isMobxAction = true;
718
+ }
719
+ return mthd;
720
+ };
714
721
  }
715
722
  if (kind == "method") {
716
723
  var _this$options_2;