Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
redux-unhandled-action
Advanced tools
Redux middleware that logs an error to the console when an action does not mutate state
A simple redux middleware that will log an error to the console if the state returned from a dispatch is equal to the state before the dispatch.
npm install redux-unhandled-action --save
Takes a single argument, an optional callback that will be called if an action is unhandled. The default callback will log an error to the console with the action type.
import { createStore, applyMiddleware } from "redux";
import reduxUnhandledAction from "redux-unhandled-action";
import reducer from "./reducer";
const callback = (action) => console.error(`${action} didn't lead to creation of a new state object`);
const store = createStore(reducer, applyMiddleware(reduxUnhandledAction(callback)));
Copyright (C) 2017 Social Tables, Inc. (https://www.socialtables.com) All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
FAQs
Redux middleware that logs an error to the console when an action does not mutate state
The npm package redux-unhandled-action receives a total of 688 weekly downloads. As such, redux-unhandled-action popularity was classified as not popular.
We found that redux-unhandled-action demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.