Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

global-store-manager

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

global-store-manager

manages global store for your project

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

BTC 3B2R9u6dpJyWB4U6iDWC14y9yejnF5hsSN Buy me a coffee Ko-fi

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.

Package Installation

npm install global-store-manager

Package Usage

  • 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();
    

Tech Stack

Authors

  • Fatih Türker

Sponsors

No sponsors yet! Will you be the first?

Contributors

No contributers yet! Will you be the first?

License


MIT

Keywords

FAQs

Package last updated on 19 Jan 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc