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

Upgrade remotedev-app to v0.6 #7

Merged
merged 7 commits into from
Aug 4, 2016
Merged

Upgrade remotedev-app to v0.6 #7

merged 7 commits into from
Aug 4, 2016

Conversation

jhen0409
Copy link
Owner

@jhen0409 jhen0409 commented Aug 4, 2016

Upgrade remotedev-app to v0.6, and sync remote-redux-devtools updates, the new feature is Use action creators for Dispatcher, we can set actionCreators in reduxNativeDevTools options:

import { createStore, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import reducer from '../reducers';
import * as actionCreators from '../actions/counter'; 

export default initialState => {
  const enhancer = compose(
    applyMiddleware(thunk),
    global.reduxNativeDevTools ?
      global.reduxNativeDevTools({ actionCreators }) :
      f => f,
  );
  return createStore(reducer, initialState, enhancer);
}

@jhen0409 jhen0409 merged commit 8b26d05 into master Aug 4, 2016
@jhen0409 jhen0409 deleted the upgrade-remotedev branch August 6, 2016 05:04
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

Successfully merging this pull request may close these issues.

None yet

1 participant