reactotron
reactotron copied to clipboard
Breaking changes in reactotron-react-js/redux?
Error
src/ReactotronConfig.ts(8,61): error TS2345: Argument of type '(reactotron: Reactotron) => { onCommand: ({ type, payload }: { type: string; payload?: any; }) => void; features: { createEnhancer: (skipSettingStore?: boolean | undefined) => (createStore: any) => (reducer: any, ...args: any[]) => any; setReduxStore: (store: any) => void; reportReduxAction: (action: { ...; }, ms: n...' is not assignable to parameter of type 'PluginCreator<ReactotronCore>'.
Code, works with
"reactotron-react-js": "^3.3.8",
"reactotron-redux": "^3.1.3",
Doesnt work with
"reactotron-react-js": "^3.3.9",
"reactotron-redux": "^3.1.4",
Code:
import Reactotron from 'reactotron-react-js'
import { reactotronRedux } from 'reactotron-redux'
let reactotron
if (process.env.NODE_ENV !== 'production') {
reactotron = Reactotron.configure({ name: 'App' }).use(reactotronRedux()).connect()
}
export default reactotron
Unable to find documented breaking change, code matches https://github.com/infinitered/reactotron/blob/master/docs/plugins/redux.md#configuring