-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ import * as actionCreators from '../actions/counter'; | |
|
||
export let isMonitorAction; | ||
export default function configureStore(preloadedState) { | ||
const composeEnhancers = composeWithDevTools({ actionCreators }); | ||
const composeEnhancers = composeWithDevTools({ actionCreators, trace: true, traceLimit: 25 }); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
windmaomao
|
||
const store = createStore(reducer, preloadedState, composeEnhancers( | ||
applyMiddleware(invariant(), thunk) | ||
)); | ||
|
2 comments
on commit 64717bb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how do you do this for redux saga, where we have:
composeWithDevTools(applyMiddleware(sagaMiddleware))
as
composeWithDevTools({ ...applyMiddleware(sagaMiddleware), trace: true })
will not work
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See here
composeWithDevTools({ trace: true })(applyMiddleware(sagaMiddleware))
For people, who are wondering about actionCreators --> all the actions
link