mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-22 09:36:43 +03:00
Fix lint
This commit is contained in:
parent
8c68b9519c
commit
0c3a1c6f7a
|
@ -1,5 +1,4 @@
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { render } from 'react-dom';
|
|
||||||
import { Provider } from 'react-redux';
|
import { Provider } from 'react-redux';
|
||||||
import CounterApp from './CounterApp';
|
import CounterApp from './CounterApp';
|
||||||
import Dock from 'react-dock';
|
import Dock from 'react-dock';
|
||||||
|
|
|
@ -2,4 +2,4 @@ if (process.env.NODE_ENV === 'production') {
|
||||||
module.exports = require('./Root.prod');
|
module.exports = require('./Root.prod');
|
||||||
} else {
|
} else {
|
||||||
module.exports = require('./Root.dev');
|
module.exports = require('./Root.dev');
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { render } from 'react-dom';
|
|
||||||
import { Provider } from 'react-redux';
|
import { Provider } from 'react-redux';
|
||||||
import CounterApp from './CounterApp';
|
import CounterApp from './CounterApp';
|
||||||
|
|
||||||
|
|
|
@ -5,4 +5,4 @@ const rootReducer = combineReducers({
|
||||||
counter
|
counter
|
||||||
});
|
});
|
||||||
|
|
||||||
export default rootReducer;
|
export default rootReducer;
|
||||||
|
|
|
@ -10,7 +10,7 @@ const finalCreateStore = compose(
|
||||||
)(createStore);
|
)(createStore);
|
||||||
|
|
||||||
export default function configureStore(initialState) {
|
export default function configureStore(initialState) {
|
||||||
const store = finalCreateStore(rootReducer);
|
const store = finalCreateStore(rootReducer, initialState);
|
||||||
|
|
||||||
if (module.hot) {
|
if (module.hot) {
|
||||||
module.hot.accept('../reducers', () =>
|
module.hot.accept('../reducers', () =>
|
||||||
|
|
|
@ -2,4 +2,4 @@ if (process.env.NODE_ENV === 'development') {
|
||||||
module.exports = require('./configureStore.prod');
|
module.exports = require('./configureStore.prod');
|
||||||
} else {
|
} else {
|
||||||
module.exports = require('./configureStore.dev');
|
module.exports = require('./configureStore.dev');
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,5 +7,5 @@ const finalCreateStore = compose(
|
||||||
)(createStore);
|
)(createStore);
|
||||||
|
|
||||||
export default function configureStore(initialState) {
|
export default function configureStore(initialState) {
|
||||||
return finalCreateStore(rootReducer);
|
return finalCreateStore(rootReducer, initialState);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user