Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
redux-devtools-inspector
Advanced tools
A state monitor for Redux DevTools that provides a convenient way to inspect "real world" app states that could be complicated and deeply nested. Created by @alexkuz and merged from alexkuz/redux-devtools-inspector
into reduxjs/redux-devtools
monorepo.
npm install --save-dev redux-devtools-inspector
You can use Inspector
as the only monitor in your app:
containers/DevTools.js
import React from 'react';
import { createDevTools } from 'redux-devtools';
import Inspector from 'redux-devtools-inspector';
export default createDevTools(<Inspector />);
Then you can render <DevTools>
to any place inside app or even into a separate popup window.
Alternative, you can use it together with DockMonitor
to make it dockable.
Consult the DockMonitor
README for details of this approach.
Read how to start using Redux DevTools.
The inspector displays a list of actions and a preview panel which shows the state after the selected action and a diff with the previous state. If no actions are selected, the last state is shown.
You may pin a certain part of the state to only track its changes.
Name | Type | Description |
---|---|---|
theme | Object or string | Contains either base16 theme name or object, that can be base16 colors map or object containing classnames or styles. |
invertTheme | Boolean | Inverts theme color luminance, making light theme out of dark theme and vice versa. |
supportImmutable | Boolean | Better Immutable rendering in Diff (can affect performance if state has huge objects/arrays). false by default. |
tabs | Array or function | Overrides list of tabs (see below) |
diffObjectHash | Function | Optional callback for better array handling in diffs (see jsondiffpatch docs) |
diffPropertyFilter | Function | Optional callback for ignoring particular props in diff (see jsondiffpatch docs) |
If tabs
is a function, it receives a list of default tabs and should return updated list, for example:
defaultTabs => [...defaultTabs, { name: 'My Tab', component: MyTab }]
If tabs
is an array, only provided tabs are rendered.
component
is provided with action
and other props, see ActionPreview.jsx
for reference.
Usage example: redux-devtools-test-generator
.
MIT
FAQs
Redux DevTools Diff Monitor
We found that redux-devtools-inspector demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.