Skip to content

Commit

Permalink
Docs for #2079
Browse files Browse the repository at this point in the history
derivationRequiresObservable & observablesRequiresReaction
  • Loading branch information
Bnaya committed Sep 30, 2019
1 parent 4cc9e94 commit 7d26b8d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/refguide/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,22 @@ Use this if you want to check whether you are using computed properties without
configure({ computedRequiresReaction: true });
```

#### `observableRequiresReaction: boolean`
Warns about any unobserved observable access.
Use this if you want to check whether you are using observables without a reactive context (eg react component without observer wrapping).

```javascript
configure({ observableRequiresReaction: true });
```

#### `reactionRequiresObservable: boolean`
Warns when a reaction is created without any observable access.
Use this to check whether you are unneededly wrapping react components with `observer`, or to find possible related bugs.

```javascript
configure({ reactionRequiresObservable: true });
```

#### `computedConfigurable: boolean`
Allows overwriting computed values. This is useful for testing purposes *only*. Don't enable this
on production as it can cause memory-leaks.
Expand Down

0 comments on commit 7d26b8d

Please sign in to comment.