Permalink
Browse files

Examples for actionCreators option

  • Loading branch information...
zalmoxisus committed Aug 1, 2016
1 parent 12e4fe2 commit 477e69d8649dfcdc9bf84dd45605dab7d9775c03
Showing with 5 additions and 2 deletions.
  1. +3 −1 examples/counter/store/configureStore.js
  2. +2 −1 examples/todomvc/store/configureStore.js
@@ -2,13 +2,15 @@ import { createStore, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import invariant from 'redux-immutable-state-invariant';
import reducer from '../reducers';
import * as actionCreators from '../actions/counter';
export let isMonitorAction;
export default function configureStore(initialState) {
const store = createStore(reducer, initialState, compose(
applyMiddleware(invariant(), thunk),
window.devToolsExtension ? window.devToolsExtension({
getMonitor: (monitor) => { isMonitorAction = monitor.isMonitorAction; }
getMonitor: (monitor) => { isMonitorAction = monitor.isMonitorAction; },
actionCreators
}) : f => f
));
@@ -1,9 +1,10 @@
import { createStore } from 'redux';
import rootReducer from '../reducers';
import * as actionCreators from '../actions/todos';
export default function configureStore(initialState) {
const store = createStore(rootReducer, initialState,
window.devToolsExtension ? window.devToolsExtension() : undefined
window.devToolsExtension && window.devToolsExtension({ actionCreators })
);
if (module.hot) {

1 comment on commit 477e69d

@brian-gavin

This comment has been minimized.

Show comment
Hide comment
@brian-gavin

brian-gavin Jun 26, 2018

Contributor

Does this functionality actually exist in the API?

I'm citing here:
https://github.com/zalmoxisus/redux-devtools-extension/blob/master/src/app/api/index.js#L248

To me, this seems like actionCreators when using the direct messaging API isn't implemented.

Contributor

brian-gavin commented on 477e69d Jun 26, 2018

Does this functionality actually exist in the API?

I'm citing here:
https://github.com/zalmoxisus/redux-devtools-extension/blob/master/src/app/api/index.js#L248

To me, this seems like actionCreators when using the direct messaging API isn't implemented.

Please sign in to comment.