
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
global-store-manager
Advanced tools
3B2R9u6dpJyWB4U6iDWC14y9yejnF5hsSN
Global Store Manager
This package helps you to store any object like state, prop etc. so that you can simply assign it from one component and use it on another component.
npm install global-store-manager
Create store.ts on your project
import { GlobalStoreManager } from 'global-store-manager';
export const globalStoreManager = new GlobalStoreManager();
Attach your global object, state, prop anything on some component, you can also update the store with reattaching the object
globalStoreManager.attachGlobalObject(this, "userDialog");
And you can call that object you attached with using the name you assigned on any component
const {userDialog} = globalStoreManager.getGlobalStore();
userDialog.openDialog(user, action);
You can clean the global store
globalStoreManager.cleanGlobalStore();
Authors
Sponsors
No sponsors yet! Will you be the first?
Contributors
No contributers yet! Will you be the first?
MIT
FAQs
manages global store for your project
We found that global-store-manager 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.