Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lewis-wow/svelte-fetchable


https://github.com/lewis-wow/svelte-fetchable

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# svelte fetchable

```bash
npm i svelte-fetchable
```

```svelte

import fetchable from 'svelte-fetchable'

const [resultFetch, loadingFetch] = fetchable.post('https://jsonplaceholder.typicode.com/posts')


{#if $loadingFetch}
loading...
{:else}
result: {JSON.stringify($resultFetch)}
{/if}



resultFetch.fetch({ username: 'John Doe' })}>Fetch


Abort

```