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

1.1.11 • Public • Published

@solid-primitives/cookies

lerna

WARNING!: This primitive is deprecated in favour of the new/incoming Storage primitive. This package will be available but unmaintained.

A cookies storage facility.

createCookieStore - Handles creating and managing a single cookie action.

How to use it

const [value, setValue] = createCookieStore("my-cookie", "derp");
setValue("my-new-value");
console.log(value());

Demo

You may find a working example on CSB here: https://codesandbox.io/s/solid-create-cookie-store-uh192?file=/src/index.tsx

Changelog

Expand Changelog

0.0.100

Initial release.

1.1.3

Official release.

1.1.4

Patched incorrect use of serialize for the deserialize method.

1.1.5

Patched issue with deleting and added strinfication ability.

1.1.6

Fixed an issue with = in values

Package Sidebar

Install

npm i @solid-primitives/cookies-store

Weekly Downloads

6

Version

1.1.11

License

MIT

Unpacked Size

7.87 kB

Total Files

5

Last publish

Collaborators

  • thetarnav.
  • lexlohr
  • davedbase