mobx-react-use-autorun 3.0.32 → 3.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -114,7 +114,8 @@ is easy to use, you can define state and third-party hooks.<br/>
|
|
|
114
114
|
|
|
115
115
|
## Notes - Subscription property changes with useMobxEffect
|
|
116
116
|
|
|
117
|
-
import { useMobxState, observer
|
|
117
|
+
import { useMobxState, observer } from 'mobx-react-use-autorun';
|
|
118
|
+
import { useMobxEffect, toJS } from 'mobx-react-use-autorun'
|
|
118
119
|
|
|
119
120
|
export default observer(() => {
|
|
120
121
|
|
|
@@ -149,7 +150,8 @@ toJS will cause data to be used, please do not execute toJS(state) in component
|
|
|
149
150
|
|
|
150
151
|
Other than that, all usages are correct. Example:<br/>
|
|
151
152
|
|
|
152
|
-
import { toJS, useMobxEffect
|
|
153
|
+
import { toJS, useMobxEffect } from 'mobx-react-use-autorun';
|
|
154
|
+
import { observer, useMobxState } from 'mobx-react-use-autorun';
|
|
153
155
|
import { v1 } from 'uuid'
|
|
154
156
|
|
|
155
157
|
export default observer(() => {
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"mobx-react-use-autorun","version":"3.0.
|
|
1
|
+
{"name":"mobx-react-use-autorun","version":"3.0.33","description":"React Hook for mobx","scripts":{"test":"npx -y -p typescript -p ts-node ts-node --skipProject bin/mobx_react_test.ts","build":"npx -y -p typescript -p ts-node ts-node --skipProject bin/mobx_react_build.ts","make":"npx -y -p typescript -p ts-node ts-node --skipProject bin/mobx_react_make.ts"},"dependencies":{"mobx":">=6.5.0","mobx-react-lite":">=3.3.0","react-use":">=17.3.2","rxjs":">=6.0.0"},"peerDependencies":{"react":">=16.8.0"},"license":"MIT","keywords":["react","mobx","typescript"],"main":"./dist/index.js","types":"./dist/index.d.ts","eslintConfig":{"extends":["react-app","react-app/jest"]},"homepage":"https://github.com/zdu-strong/mobx-react-use-autorun#readme","repository":{"type":"git","url":"git+https://github.com/zdu-strong/mobx-react-use-autorun.git"},"files":["lib","dist"],"bugs":{"url":"https://github.com/zdu-strong/mobx-react-use-autorun/issues"},"publishConfig":{"registry":"https://registry.npmjs.org/"}}
|