
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
Helper function to create Redux modules using the ducks-modular-redux proposal.
Helper function to create Redux modules using the ducks-modular-redux proposal.
yarn add redux-duck
import { createDuck } from "redux-duck";
const myDuck = createDuck("duck-name", "application-name");
createDuck receive 2 arguments, the second argument is optional.const ACTION_TYPE = myDuck.defineType("ACTION_TYPE");
defineType receive just one argument.application-name/duck-name/ACTION_TYPE or duck-name/ACTION_TYPE if the application or module name was not defined.const actionType = myDuck.createAction(ACTION_TYPE, false);
createAction receive two arguments, the second argument is optional.const initialState = {
list: Immutable.List(),
data: Immutable.Map()
};
const reducer = myDuck.createReducer(
{
[ACTION_TYPE]: (state, action) => ({
...state,
list: state.list.push(action.payload.id),
data: state.map.set(action.payload.id + "", action.payload)
})
},
initialState
);
createReducer receive two arguments, both required.FAQs
Helper function to create Redux modules using the ducks-modular-redux proposal.
We found that redux-duck demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.