Skip to content

Commit 85e56ec

Browse files
committed
Add note about babel-plugin-mobx-deep-action
1 parent 1f53c02 commit 85e56ec

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/refguide/action.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ It is advised to use them on any function that modifies observables or has side
1717
Using the `@action` decorator with [ES 5.1 setters](http://www.ecma-international.org/ecma-262/5.1/#sec-11.1.5) (i.e. `@action set propertyName`) is not supported, however setters of [computed properties are automatically actions](https://github.com/mobxjs/mobx/blob/gh-pages/docs/refguide/computed-decorator.md#setters-for-computed-values).
1818

1919

20-
Note: using `action` is mandatory when *strict mode* is enabled, see [`useStrict`](https://github.com/mobxjs/mobx/blob/gh-pages/docs/refguide/api.md#usestrict).
20+
Note: using `action` is mandatory when *strict mode* is enabled, see [`useStrict`](https://github.com/mobxjs/mobx/blob/gh-pages/docs/refguide/api.md#usestrict).
2121

2222
For an extensive introduction to `action` see also the [MobX 2.2 release notes](https://medium.com/p/45cdc73c7c8d/).
2323

@@ -66,3 +66,5 @@ Example:
6666
```
6767

6868
The usage of `runInAction` is: `runInAction(name?, fn, scope?)`.
69+
70+
If you use babel, this plugin could help you to handle your async actions: [mobx-deep-action](https://github.com/mobxjs/babel-plugin-mobx-deep-action).

0 commit comments

Comments
 (0)