@jill64/async-observer
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-next.2 • Public • Published

@jill64/async-observer

npm-version npm-license npm-download-month npm-min-size

🔭 Make Promise state observable as a string for svelte

Example

<script>
  import { observable } from '@jill64/async-observer'

  let { status, observed } = observable()

  let set = observed(async () => {
    await yourAsyncFunction()
  })
</script>

<button onclick={set}>Button</button>

<div>{status}</div>

License

MIT

Dependencies (0)

    Dev Dependencies (15)

    Package Sidebar

    Install

    npm i @jill64/async-observer

    Weekly Downloads

    22,315

    Version

    2.0.0-next.2

    License

    MIT

    Unpacked Size

    6.16 kB

    Total Files

    11

    Last publish

    Collaborators

    • jill64