docs: adjust readable store example (#4903)

pull/4905/head
Alessandro (Ale) Segala 5 years ago committed by GitHub
parent e34f208843
commit 81b6c0b986
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -287,7 +287,9 @@ The second argument to `readable` is the same as the second argument to `writabl
```js
import { readable } from 'svelte/store';
const time = readable(new Date(), set => {
const time = readable(null, set => {
set(new Date());
const interval = setInterval(() => {
set(new Date());
}, 1000);

Loading…
Cancel
Save