Update links

This commit is contained in:
Zalmoxisus 2018-12-12 02:22:35 +02:00
parent efe990be50
commit b4f0c59ebd
9 changed files with 22 additions and 22 deletions

View File

@ -73,7 +73,7 @@ A store enhancer is a function that enhances the behavior of `createStore()`. Yo
The easiest way to apply several store enhancers in a row is to use the [`compose()`](http://redux.js.org/docs/api/compose.html) utility function that ships with Redux. It is the same `compose()` that you can find in Underscore and Lodash. In our case, we would use it to compose several store enhancers into one: `compose(applyMiddleware(m1, m2, m3), DevTools.instrument())`. The easiest way to apply several store enhancers in a row is to use the [`compose()`](http://redux.js.org/docs/api/compose.html) utility function that ships with Redux. It is the same `compose()` that you can find in Underscore and Lodash. In our case, we would use it to compose several store enhancers into one: `compose(applyMiddleware(m1, m2, m3), DevTools.instrument())`.
You can add additional options to it: `DevTools.instrument({ maxAge: 50, shouldCatchErrors: true })`. See [`redux-devtools-instrument`'s API](https://github.com/zalmoxisus/redux-devtools-instrument#api) for more details. You can add additional options to it: `DevTools.instrument({ maxAge: 50, shouldCatchErrors: true })`. See [`redux-devtools-instrument`'s API](https://github.com/reduxjs/redux-devtools/tree/master/packages/redux-devtools-instrument#api) for more details.
Its important that you should add `DevTools.instrument()` *after* `applyMiddleware` in your `compose()` function arguments. This is because `applyMiddleware` is potentially asynchronous, but `DevTools.instrument()` expects all actions to be plain objects rather than actions interpreted by asynchronous middleware such as [redux-promise](https://github.com/acdlite/redux-promise) or [redux-thunk](https://github.com/gaearon/redux-thunk). So make sure `applyMiddleware()` goes first in the `compose()` call, and `DevTools.instrument()` goes after it. Its important that you should add `DevTools.instrument()` *after* `applyMiddleware` in your `compose()` function arguments. This is because `applyMiddleware` is potentially asynchronous, but `DevTools.instrument()` expects all actions to be plain objects rather than actions interpreted by asynchronous middleware such as [redux-promise](https://github.com/acdlite/redux-promise) or [redux-thunk](https://github.com/gaearon/redux-thunk). So make sure `applyMiddleware()` goes first in the `compose()` call, and `DevTools.instrument()` goes after it.

View File

@ -1,7 +1,7 @@
Redux DevTools Instrumentation Redux DevTools Instrumentation
============================== ==============================
Redux enhancer used along with [Redux DevTools](https://github.com/gaearon/redux-devtools) or [Remote Redux DevTools](https://github.com/zalmoxisus/remote-redux-devtools). Redux enhancer used along with [Redux DevTools](https://github.com/reduxjs/redux-devtools) or [Remote Redux DevTools](https://github.com/zalmoxisus/remote-redux-devtools).
### Installation ### Installation

View File

@ -19,7 +19,7 @@
], ],
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/zalmoxisus/redux-devtools-instrument.git" "url": "https://github.com/reduxjs/redux-devtools.git"
}, },
"keywords": [ "keywords": [
"redux", "redux",
@ -32,9 +32,9 @@
"author": "Dan Abramov <dan.abramov@me.com> (http://github.com/gaearon)", "author": "Dan Abramov <dan.abramov@me.com> (http://github.com/gaearon)",
"license": "MIT", "license": "MIT",
"bugs": { "bugs": {
"url": "https://github.com/zalmoxisus/redux-devtools-instrument/issues" "url": "https://github.com/reduxjs/redux-devtools/issues"
}, },
"homepage": "https://github.com/zalmoxisus/redux-devtools-instrument", "homepage": "https://github.com/reduxjs/redux-devtools",
"devDependencies": { "devDependencies": {
"babel-cli": "^6.3.17", "babel-cli": "^6.3.17",
"babel-core": "^6.3.17", "babel-core": "^6.3.17",

View File

@ -50,10 +50,10 @@ Clone the project:
``` ```
git clone https://github.com/reduxjs/redux-devtools.git git clone https://github.com/reduxjs/redux-devtools.git
cd redux-devtools cd redux-devtools/packages/redux-devtools
``` ```
Run `npm install` in the root folder: Run `npm install` in the package folder:
``` ```
npm install npm install

View File

@ -5,13 +5,13 @@
First, clone the project: First, clone the project:
``` ```
git clone https://github.com/gaearon/redux-devtools.git git clone https://github.com/reduxjs/redux-devtools.git
``` ```
Then install the dependencies in the root folder: Then install the dependencies in the package folder:
``` ```
cd redux-devtools cd redux-devtools/packages/redux-devtools
npm install npm install
``` ```

View File

@ -8,13 +8,13 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/gaearon/redux-devtools.git" "url": "https://github.com/reduxjs/redux-devtools.git"
}, },
"license": "MIT", "license": "MIT",
"bugs": { "bugs": {
"url": "https://github.com/gaearon/redux-devtools/issues" "url": "https://github.com/reduxjs/redux-devtools/issues"
}, },
"homepage": "https://github.com/gaearon/redux-devtools#readme", "homepage": "https://github.com/reduxjs/redux-devtools#readme",
"dependencies": { "dependencies": {
"prop-types": "^15.5.7", "prop-types": "^15.5.7",
"react": "^15.3.0", "react": "^15.3.0",

View File

@ -5,13 +5,13 @@
First, clone the project: First, clone the project:
``` ```
git clone https://github.com/gaearon/redux-devtools.git git clone https://github.com/reduxjs/redux-devtools.git
``` ```
Then install the dependencies in the root folder: Then install the dependencies in the package folder:
``` ```
cd redux-devtools cd redux-devtools/packages/redux-devtools
npm install npm install
``` ```

View File

@ -8,7 +8,7 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/gaearon/redux-devtools.git" "url": "https://github.com/reduxjs/redux-devtools.git"
}, },
"keywords": [ "keywords": [
"react", "react",
@ -24,9 +24,9 @@
], ],
"license": "MIT", "license": "MIT",
"bugs": { "bugs": {
"url": "https://github.com/gaearon/redux-devtools/issues" "url": "https://github.com/reduxjs/redux-devtools/issues"
}, },
"homepage": "https://github.com/gaearon/redux-devtools#readme", "homepage": "https://github.com/reduxjs/redux-devtools#readme",
"dependencies": { "dependencies": {
"classnames": "^2.1.2", "classnames": "^2.1.2",
"prop-types": "^15.5.7", "prop-types": "^15.5.7",

View File

@ -19,7 +19,7 @@
], ],
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/gaearon/redux-devtools.git" "url": "https://github.com/reduxjs/redux-devtools.git"
}, },
"keywords": [ "keywords": [
"redux", "redux",
@ -32,9 +32,9 @@
"author": "Dan Abramov <dan.abramov@me.com> (http://github.com/gaearon)", "author": "Dan Abramov <dan.abramov@me.com> (http://github.com/gaearon)",
"license": "MIT", "license": "MIT",
"bugs": { "bugs": {
"url": "https://github.com/gaearon/redux-devtools/issues" "url": "https://github.com/reduxjs/redux-devtools/issues"
}, },
"homepage": "https://github.com/gaearon/redux-devtools", "homepage": "https://github.com/reduxjs/redux-devtools",
"devDependencies": { "devDependencies": {
"babel-cli": "^6.3.17", "babel-cli": "^6.3.17",
"babel-core": "^6.3.17", "babel-core": "^6.3.17",