Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@iadvize-oss/store-devtools

Package Overview
Dependencies
Maintainers
12
Versions
1162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iadvize-oss/store-devtools

Devtools for @iadvize-oss/store

latest
Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
6
-99.48%
Maintainers
12
Weekly downloads
 
Created
Source

@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.

Keywords

iAdvize

FAQs

Package last updated on 31 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts