Skip to content

Commit f4d31e8

Browse files
author
Michel Weststrate
committed
6.1.0 release
1 parent f56e0fb commit f4d31e8

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -570,9 +570,6 @@ Instead, the component will only re-render when the relevant todo is (de)selecte
570570
### Examples
571571

572572
```javascript
573-
const Todo = observer((props) => {
574-
const todo = props.todo
575-
const isSelected = mobxUtils.expr(() => props.viewState.selection === todo)
576573
const TodoView = observer(({ todo, editorState }) => {
577574
const isSelected = mobxUtils.expr(() => editorState.selection === todo)
578575
return <div className={isSelected ? "todo todo-selected" : "todo"}>{todo.title}</div>
@@ -588,9 +585,11 @@ See the [transformer](#createtransformer-in-detail) section for more details.
588585

589586
### Parameters
590587

591-
- `transformer`
592-
- `arg2`
593-
- `onCleanup`
588+
- `transformer` A function which transforms instances of A into instances of B
589+
- `arg2` An optional cleanup function which is called when the transformation is no longer
590+
observed from a reactive context, or config options
591+
592+
Returns **any** The memoized transformer function
594593

595594
## deepObserve
596595

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mobx-utils",
3-
"version": "6.0.8",
3+
"version": "6.1.0",
44
"description": "Utility functions and common patterns for MobX",
55
"main": "mobx-utils.umd.js",
66
"module": "mobx-utils.module.js",
@@ -91,4 +91,4 @@
9191
"pre-commit": "lint-staged"
9292
}
9393
}
94-
}
94+
}

0 commit comments

Comments
 (0)