Skip to content

Commit

Permalink
Merge branch 'main' into fix-2686
Browse files Browse the repository at this point in the history
  • Loading branch information
mweststrate committed Jan 23, 2021
2 parents c1f4f1d + 592e6e9 commit d9f435f
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/olive-spies-cry.md
@@ -0,0 +1,5 @@
---
"mobx": patch
---

The TypeScript type `CreateObservableOptions` is now exported.
7 changes: 7 additions & 0 deletions .changeset/sweet-shrimps-float.md
@@ -0,0 +1,7 @@
---
"mobx-react-lite": patch
"mobx-react": patch
"mobx": patch
---

Remove `sideEffects` section in `mobx-react-lite` `package.json`
3 changes: 2 additions & 1 deletion docs/computeds-with-args.md
Expand Up @@ -47,7 +47,8 @@ This is a more efficient implementation compared to the original.
```javascript
import * as React from 'react'
import { observer, computed } from 'mobx-react-lite'
import { computed } from 'mobx'
import { observer } from 'mobx-react-lite'

const Item = observer(({ item, store }) => {
const isSelected = computed(() => store.isSelected(item.id)).get()
Expand Down
2 changes: 1 addition & 1 deletion docs/installation.md
Expand Up @@ -16,7 +16,7 @@ There are two types of React bindings, `mobx-react-lite` supports only functiona

**NPM:** `npm install --save mobx`

**CDN:** https://cdnjs.com/libraries/mobx / https://unpkg.com/mobx/lib/mobx.umd.js
**CDN:** https://cdnjs.com/libraries/mobx / https://unpkg.com/mobx/dist/mobx.umd.production.min.js

## Use spec compliant transpilation for class properties

Expand Down
1 change: 0 additions & 1 deletion packages/mobx-react-lite/package.json
Expand Up @@ -22,7 +22,6 @@
"README.md",
"batching*"
],
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/mobxjs/mobx.git"
Expand Down
1 change: 1 addition & 0 deletions packages/mobx/src/mobx.ts
Expand Up @@ -73,6 +73,7 @@ export {
transaction,
observable,
IObservableFactory,
CreateObservableOptions,
computed,
isObservable,
isObservableProp,
Expand Down

0 comments on commit d9f435f

Please sign in to comment.