Skip to content

Commit 381f79e

Browse files
authored
Merge pull request mobxjs#764 from scottbessler/patch-1
Include computed.struct in mobx3 changelog
2 parents aa1666a + dfa1346 commit 381f79e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ Using `computed` to create boxed observables has been simplified, and `computed`
105105
* `computed(expr, setter)`
106106
* `computed(expr, options)`, where options is an object that can specify one or more of the following fields: `name`, `setter`, `compareStructural` or `context` (the "this").
107107

108+
Computed can also be used as a decorator:
109+
110+
* `@computed`
111+
* `@computed.struct` when you want to compareStructural (previously was `@computed({asStructure: true})`)
112+
108113
### `reaction` api has been simplified
109114

110115
The signature of `reaction` is now `reaction(dataFunc, effectFunc, options?)`, where the following options are accepted:

0 commit comments

Comments
 (0)