Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ const mapStateToProps = (state) => {
return {
objects: state.objectIds.map(id => state.objects[id])
}
};
}
```

Even though the array might contain the exact same object references each time, the array itself is a different reference, so the shallow equality check fails and React Redux would re-render the wrapped component.
Expand Down
6 changes: 3 additions & 3 deletions docs/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ Every function described above is a top-level export. You can import any of them
#### ES6

```js
import { createStore } from 'redux';
import { createStore } from 'redux'
```

#### ES5 (CommonJS)

```js
var createStore = require('redux').createStore;
var createStore = require('redux').createStore
```

#### ES5 (UMD build)

```js
var createStore = Redux.createStore;
var createStore = Redux.createStore
```
6 changes: 3 additions & 3 deletions docs/api/applyMiddleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ export default connect(
```js
let middleware = [ a, b ]
if (process.env.NODE_ENV !== 'production') {
let c = require('some-debug-middleware');
let d = require('another-debug-middleware');
middleware = [ ...middleware, c, d ];
let c = require('some-debug-middleware')
let d = require('another-debug-middleware')
middleware = [ ...middleware, c, d ]
}

const store = createStore(
Expand Down
4 changes: 2 additions & 2 deletions docs/recipes/WritingTests.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ import thunk from 'redux-thunk'
import * as actions from '../../actions/counter'
import * as types from '../../constants/ActionTypes'
import nock from 'nock'
import expect from 'expect'; // You can use any testing library
import expect from 'expect' // You can use any testing library

const middlewares = [ thunk ]
const mockStore = configureMockStore(middlewares)
Expand Down Expand Up @@ -462,7 +462,7 @@ const dispatchWithStoreOf = (storeData, action) => {
const dispatch = singleDispatch(createFakeStore(storeData))(actionAttempt => dispatched = actionAttempt)
dispatch(action)
return dispatched
};
}

describe('middleware', () => {
it('should dispatch if store is empty', () => {
Expand Down