0.0.16 • Published 1 year ago

@crikey/stores-svelte v0.0.16

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@crikey/stores-svelte

Provide svelte compatible implementations of readable, writable, derived and get.

This package is a simple convenience wrapper around @crikey/stores-base utilising the trigger_safe_not_equal trigger function to mirror svelte greedy signaling semantics.

See @crikey/stores-svelte for full documentation.

codecov

API

Store creation functions:

  • constant - Create a Readable store with a fixed value
  • readable - Create a Readable store
  • writable - Create a Writable store
  • derive - Create a Readable store derived from the resolved values of other stores
  • transform- Create a Writable store by applying transform functions when reading and writing values

Utility functions:

  • get - Retrieve the value of a store

Installation

# pnpm
$ pnpm add @crikey/stores-svelte

# npm
$ npm add @crikey/stores-svelte

# yarn
$ yarn add @crikey/stores-svelte

Usage

Standard usage should be a drop in replacement for svelte/store.

0.0.16

1 year ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.2

3 years ago