
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
@stardust-ui/state
Advanced tools
A set of utils to create framework agnostic and reusable state managers
@stardust-ui/stateA set of utils to create framework agnostic and reusable state managers.
NPM
npm install --save @stardust-ui/state
Yarn
yarn add @stardust-ui/state
import { createManager, ManagerFactory } from "@stardust-ui/state";
type InputState = { value: string };
type InputActions = { change: (value: string) => void };
const createInputManager: ManagerFactory<InputState, InputActions> = config =>
createManager<InputState, InputActions>({
...config,
actions: {
change: (value: string) => () => ({ value })
},
state: { value: "", ...config.state }
});
const manager = createInputManager({ state: { value: "Hello world!" } });
We provide React bindings under @stardust-ui/react-bindings.
FAQs
A set of utils to create framework agnostic and reusable state managers
We found that @stardust-ui/state demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.