Socket
Socket
Sign inDemoInstall

mobx-localstorage

Package Overview
Dependencies
2
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mobx-localstorage

A declarative reactive localStorage using MobX


Version published
Weekly downloads
853
increased by0.24%
Maintainers
1
Install size
62.3 kB
Created
Weekly downloads
 

Readme

Source

mobx-localstorage

A declarative reactive localStorage using MobX

Install
yarn add mobx-localstorage
npm i -S mobx-localstorage
Features
  • Higher performance than native getter
  • Synchronize with external changes
  • Support native APIs and MobX APIs
Usage

Same as native but can be observed by MobX

import { autorun } from 'mobx';
import localStorage from 'mobx-localstorage';

autorun(() => {
  console.log(localStorage.getItem('foo'));
});

localStorage.setItem('foo', 'bar');

// print bar

Keywords

FAQs

Last updated on 24 Dec 2019

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc