Skip to content
On this page

DevTools

ReState uses the excellent Redux DevTools to provide power-ups for your development workflow.

DevTools

Installation

Go and get the ReduxDevTools for your browser:

Then install the ReState dev-tools:

yarn add @restate/dev-tools
1

Usage

ts
import { connectDevTools } from '@restate/dev-tools'

const { store } = create({
  state: {
    name: 'John Snow',
    age: 32
  },
  options: {
    storeName: 'MY APP STORE' // <-- will show up in the instance selector
  }
})

connectDevTools(store)
1
2
3
4
5
6
7
8
9
10
11
12
13

Full example on https://stackblitz.com/edit/hello-restate

Released under the MIT License.