1.1.1 • Published 1 year ago

@iadvize-oss/store-devtools v1.1.1

Weekly downloads
3,915
License
MIT
Repository
github
Last release
1 year ago

@iadvize/store-devtools

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

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

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.

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.1.1-beta.0

4 years ago

0.1.0

4 years ago