Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 878 Bytes

README.md

File metadata and controls

32 lines (19 loc) · 878 Bytes

@crikey/stores-promise

Svelte compatible stores from promises

See @crikey/stores-promise for full documentation.

codecov

API

Store creation functions:

  • readable - Create a store tracking the state of a promise
  • derive - Derive a Promise instance from the resolved values of other stores

Promise creation functions:

  • promise - Create a Promise instance which tracks the state from a readable store containing a promise state

Installation

# pnpm
$ pnpm add @crikey/stores-promise

# npm
$ npm add @crikey/stores-promise

# yarn
$ yarn add @crikey/stores-promise