docs: adjust readable store example (#4903)

pull/7738/head
Alessandro (Ale) Segala 5 years ago committed by GitHub
parent f898769386
commit fa94011203

@ -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