We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab2e32a commit bc07695Copy full SHA for bc07695
client/app/stores/commentsStore.js
@@ -1,14 +1,16 @@
1
+/* eslint react/prop-types: 0 */
2
import { compose, createStore, applyMiddleware, combineReducers } from 'redux';
3
import thunkMiddleware from 'redux-thunk';
4
import loggerMiddleware from '../middlewares/loggerMiddleware';
5
import reducers from '../reducers';
6
import { initalStates } from '../reducers';
7
8
export default props => {
9
+ const initialComments = props;
10
const { $$commentsState } = initalStates;
11
const initialState = {
12
$$commentsStore: $$commentsState.merge({
- $$comments: props,
13
+ $$comments: initialComments,
14
}),
15
};
16
0 commit comments