@solid-primitives/local-store
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

@solid-primitives/local-store

lerna

Creates a general local storage handler for LocalStorage, SessionStorage or your own engine.

createLocalStore - A single primitive can handle localStorage and localSession.

How to use it

const [value, setValue] = createStorage("app");
setValue("foo", "bar");
console.log(value.foo);

Demo

You may view a working example here: https://codesandbox.io/s/solid-primitives-local-store-6wc4c?file=/src/index.tsx

Changelog

Expand Changelog

0.0.100

First developed commit.

1.1.4

Added ability to stringify storage.

Package Sidebar

Install

npm i @solid-primitives/local-store

Weekly Downloads

57

Version

1.1.4

License

MIT

Unpacked Size

5.27 kB

Total Files

5

Last publish

Collaborators

  • thetarnav.
  • lexlohr
  • davedbase