Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

concent-middleware-web-devtool

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

concent-middleware-web-devtool

concent的状态变迁调试工具

  • 1.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

concent状态变迁调试工具

类似redux-devtoolconcent-middleware-web-devtool作为中间件被引入,可以追溯整个concent引用的状态变迁过程,并允许你查看某一次状态变更是由具体那一个组件触发导致。

如何使用

npm 安装
npm i concent-middleware-web-devtool
项目里引入

在runConcent.js脚本里引入中间

import { run } from 'concent';
import { concentWebDevToolMiddleware } from 'concent-middleware-web-devtool';


run(
  // { ... your store definition },
  {
    //配置devtool中间件
    middlewares:[concentWebDevToolMiddleware],
  }
);
实例化UI

在顶层ReactDOM里实例化ConcentWebDevTool组件

import YourApp from './YourApp';
import { ConcentWebDevTool } from 'concent-middleware-web-devtool';

function App(){
  return (
    <React.Fragment>
      <ConcentWebDevTool />
      <YourApp />
    </React.Fragment>
  );
}

Keywords

FAQs

Package last updated on 26 Feb 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc