Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@nteract/actions
Advanced tools
This package contains definitions of constants and action creators that can be used to create Redux actions in your nteract application. These actions can be dispatch to create new cells, launch kernels, create new notebooks, execute cells, and much more. To see this package in action, you can view the source code for the @nteract/epics and @nteract/core packages.
$ yarn add @nteract/actions
$ npm install --save @nteract/actions
The Redux reducer below shows how we can leverage the actions and action types in this package to create a reducer for managing the status of a save event.
import actions from "@nteract/actions";
export default function myReducer(
state: MyState,
action: actions.Save | actions.SaveFulfilled | actions.SaveFailed
) {
switch (action.type) {
case actions.SAVE:
return { ...state, status: "saving" };
case actions.SAVE_FULFILLED:
return { ...state, status: "success" };
case actions.SAVE_FAILED:
return { ...state, status: "failed" };
default:
return state;
}
}
You can view the reference documentation for @nteract/actions
in the package docs.
If you experience an issue while using this package or have a feature request, please file an issue on the issue board and add the pkg:actions
label.
FAQs
A collection of actions
We found that @nteract/actions demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 18 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.