mobx 6.3.1 → 6.3.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobx",
3
- "version": "6.3.1",
3
+ "version": "6.3.2",
4
4
  "description": "Simple, scalable state management.",
5
5
  "source": "src/mobx.ts",
6
6
  "main": "dist/index.js",
@@ -58,7 +58,8 @@ function make_(
58
58
  // function on proto -> autoAction/flow
59
59
  if (source !== adm.target_ && typeof descriptor.value === "function") {
60
60
  if (isGenerator(descriptor.value)) {
61
- return flow.make_(adm, key, descriptor, source)
61
+ const flowAnnotation = this.options_?.autoBind ? flow.bound : flow
62
+ return flowAnnotation.make_(adm, key, descriptor, source)
62
63
  }
63
64
  const actionAnnotation = this.options_?.autoBind ? autoAction.bound : autoAction
64
65
  return actionAnnotation.make_(adm, key, descriptor, source)