Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 1011 Bytes

devtools.md

File metadata and controls

50 lines (38 loc) · 1011 Bytes

Devtools

Redux-Devtools

Rematch works with Redux Devtools out of the box. No configuration required.

init() // devtools up and running

Its also possible to add redux devtools configuration options.

init({
  redux: {
    devtoolOptions: options,
  },
})

Reactotron

Setup Rematch to also work with Reactotron devtools.

// Reactotron.config.js
import Reactotron from 'reactotron-react-native'
import { reactotronRedux } from 'reactotron-redux'

export default Reactotron
  .configure({
    name: 'MyAwesomeApp'
  })
  .use(reactotronRedux())
  // add other devtools here
  .connect()

Overwrite createStore to complete the config.

// index.js
import Reactotron from './Reactotron.config.js'

init({
  redux: {
    createStore: Reactotron.createStore,
  }
})