@iadvize-oss/store-devtools
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

@iadvize/store-devtools

Devtools for @iadvize/store, a lightweight Javascript store library.

Use @iadvize/store-devtools to debug your store with ReduxDevtools extension.

📖 Documentation

Usage

npm install @iadvize-oss/store @iadvize-oss/store-devtools

@iadvize-oss/store is a peer-dependency

Example

import * as Store from '@iadvize/store';
import { withDevtools } from '@iadvize/store-devtools';

const store = withDevtools({
  name: 'my store',
})(Store.create(() => 2)());

Instead of classic Redux action type, it will try to use the reducer function name to log the change.

store.apply(
  function multiplyByTwo(state: number) {
    return state * 2;
  }
)();

Devtools will use multiplyByTwo as change type here.

Readme

Keywords

Package Sidebar

Install

npm i @iadvize-oss/store-devtools

Weekly Downloads

6

Version

1.1.1

License

MIT

Unpacked Size

6.72 kB

Total Files

7

Last publish

Collaborators

  • benoitpatra
  • etienne.rouillard.iadvize
  • simon.liotier.iadvize
  • korial29
  • jules.trehorel
  • davidiadvize
  • mguihal.iadvize
  • iadvize-bot