0.7.0 • Published 9 months ago

@reatom/devtools v0.7.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Developer tools for states and actions inspecting

Installation

npm install @reatom/devtools

Note that this package is published with ESM bundle only.

Usage

You typical setup would look like that.

import { createCtx, connectLogger } from '@reatom/framework'
import { connectDevtools } from '@reatom/devtools'

const ctx = createCtx()

if (import.meta.env.DEV) {
  connectLogger(ctx)
  connectDevtools(ctx)
}

// ...

connectDevtools has an optional second argument where you can specify how to process an atoms names.

type Options = {
  separator?: string | RegExp | ((name: string) => Array<string>) // default is /\.|#/
  privatePrefix?: string // default is '_'
}
0.7.0

9 months ago

0.6.2

9 months ago

0.5.0

9 months ago

0.4.0

9 months ago

0.6.1

9 months ago

0.6.0

9 months ago

0.3.0

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago