You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* docs: Document enumerability as discussed in #2641
* docs: Document `proxy` option as discussed in #2717
* docs: use absolute urls in Readme, fixes#2685
* Add changeset
* Name fix
@@ -13,32 +13,32 @@ _Simple, scalable state management._
13
13
14
14
---
15
15
16
-
> Documentation for older __unsupported__ V4/V5 can be [found here](https://github.com/mobxjs/mobx/blob/mobx4and5/docs/README.md), but be sure to read about [current documentation first](https://mobx.js.org/about-this-documentation.html).
16
+
> Documentation for older **unsupported** V4/V5 can be [found here](https://github.com/mobxjs/mobx/blob/mobx4and5/docs/README.md), but be sure to read about [current documentation first](https://mobx.js.org/about-this-documentation.html).
17
17
18
18
MobX is made possible by the generosity of the sponsors below, and many other [individual backers](docs/backers-sponsors.md#backers). Sponsoring directly impacts the longevity of this project.
19
19
20
20
**🥇Gold sponsors (\$3000+ total contribution):** <br/>
<ahref="https://opensource.facebook.com/"><imgsrc="docs/assets/fbos.jpeg"align="center"width="100"title="Facebook Open Source"alt="Facebook Open Source" /></a>
<ahref="https://opensource.facebook.com/"><imgsrc="https://mobx.js.org/docs/assets/fbos.jpeg"align="center"width="100"title="Facebook Open Source"alt="Facebook Open Source" /></a>
Copy file name to clipboardExpand all lines: docs/actions.md
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ MobX requires that you declare your actions, although [`makeAutoObservable`](obs
22
22
23
23
2. By default, it is not allowed to change the state outside of actions. This helps to clearly identify in your code base where the state updates happen.
24
24
25
-
The `action` annotation should only be used on functions that intend to _modify_ the state. Functions that derive information (performing lookups or filtering data) should _not_ be marked as actions, to allow MobX to track their invocations.
25
+
The `action` annotation should only be used on functions that intend to _modify_ the state. Functions that derive information (performing lookups or filtering data) should _not_ be marked as actions, to allow MobX to track their invocations.`action` annotated members will be non-enumerable.
Copy file name to clipboardExpand all lines: docs/observable-state.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -237,6 +237,7 @@ The above APIs take an optional `options` argument which is an object that suppo
237
237
-`autoBind: true` automatically binds all created actions to the instance.
238
238
-`deep: false` uses `observable.ref` by default, rather than `observable` to create new observable members.
239
239
-`name: <string>` gives the object a debug name that is printed in error messages and reflection APIs.
240
+
-`proxy: false` skips Proxy creating. This is a good option if the shape of the object will not change over time, as non-proxied objects are easier to debug and faster. See [avoiding proxies](#avoid-proxies).
240
241
241
242
## Converting observables back to vanilla JavaScript collections
0 commit comments