0.0.10 • Published 4 years ago

sveltesociety v0.0.10

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

Svelte Society Utilities

A library of utilities, actions, components and stores for your Svelte projects

Usage

Stores

periodicFetch

This custom store will re-fetch from a URL every N (default 5000ms) seconds. Pass in url and time.

<script>
	import { periodicFetch } from 'sveltesociety/store'
	const url = "https://www.swapi.tech/api/people/";
	
	const starWarsPeople = periodicFetch(url)
</script>

<pre>{JSON.stringify($starWarsPeople, undefined, 2)}</pre>

REPL Example

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago