v1.0.0-alpha-3
Pre-release
Pre-release
·
106 commits
to master
since this release
Breaking Change
The monitor now has its own reducer and actions. This replaces the need for setMonitorState
which was clumsy (reduxjs/redux-devtools#122). This is also a step towards composable monitors.
The visibleOnLoad
prop is now removed. Instead, you are supposed to pass monitor's reducer to devTools
store enhancer (only available since redux-devtools@3.0.0-alpha-3
):
import { createMonitorReducer } from 'redux-devtools-log-monitor';
const finalCreateStore = compose(
applyMiddleware(thunk),
devTools(createMonitorReducer({
isVisibleOnLoad: true // <------------------- you can now configure initial visibility here
})),
persistState(window.location.href.match(/[?&]debug_session=([^&]+)\b/))
)(createStore);