Rematch实践指南
  • 重新思考Redux
  • 目的
  • API 文档
    • @rematch/core API
    • Init Redux API
    • Plugin API
  • 技巧
    • Devtools
    • React
    • Vue
    • Testing
    • TypeScript
    • Immer
    • Decoupling reducers
  • 插件
    • Rematch Select
    • Rematch Loading
    • Rematch Persist
    • Rematch Updated
    • React Navigation
    • Rematch Immer
  • 灵感
Powered by GitBook
On this page
  • Redux-Devtools
  • Reactotron
  1. 技巧

Devtools

Previous技巧NextReact

Last updated 6 years ago

Redux-Devtools

Rematch具有开箱即用的。不需要配置。

init() // devtools up and running

还可以添加redux devtools。

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

Reactotron

还可以设置 Rematch 与 一起工作。

// 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()

覆写createStore来完成配置。

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

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

Redux Devtools
配置选项
Reactotron devtools