Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reducer安装谷歌插件 #11

Open
RowgerGo opened this issue Dec 25, 2017 · 1 comment
Open

reducer安装谷歌插件 #11

RowgerGo opened this issue Dec 25, 2017 · 1 comment

Comments

@RowgerGo
Copy link

const store = createStore(
   reducer, 
   window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
 );
@RowgerGo
Copy link
Author

RowgerGo commented Dec 25, 2017

import { createStore, applyMiddleware, compose } from 'redux';
修改\src\app\store\configureStore.js

let store;
  if (!(window.__REDUX_DEVTOOLS_EXTENSION__ || window.__REDUX_DEVTOOLS_EXTENSION__)){
    store = createStoreWithMiddleware(rootReducer, initialState);
  } else {
    store = createStore(
      rootReducer,
      compose(initialState,window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__())
    );
  }

这个是我修改了的,但是没有效果

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant