Skip to content

Commit

Permalink
Docs: remove semicolons according code style (reduxjs#1763)
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeny Samsonov authored and seantcoyote committed Jan 14, 2018
1 parent c32e15a commit 9678e3d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
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

0 comments on commit 9678e3d

Please sign in to comment.