Socket
Socket
Sign inDemoInstall

@nanostores/persistent

Package Overview
Dependencies
1
Maintainers
4
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @nanostores/persistent

A store for Nano Stores state manager to keep data in localStorage


Version published
Weekly downloads
12K
increased by1.76%
Maintainers
4
Install size
12.2 kB
Created
Weekly downloads
 

Changelog

Source

0.10.1

  • Fixed multiple update events on single persistentMap.set call (by @kaytwo).

Readme

Source

Nano Stores Persistent

A smart store for Nano Stores state manager to keep data in localStorage and synchronize changes between browser tabs.

  • Small. from 281 bytes (minified and brotlied). Zero dependencies. It uses Size Limit to control size.
  • It has good TypeScript.
  • Framework agnostic. It supports SSR. localStorage can be switched to another storage.
import { persistentAtom } from '@nanostores/persistent'

export const locale = persistentAtom('locale', 'en')

Made in Evil Martians, product consulting for developer tools.


Docs

Read full docs here.

Keywords

FAQs

Last updated on 21 Feb 2024

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