diff --git a/site/content/docs/03-run-time.md b/site/content/docs/03-run-time.md index 97eabd1146..460c393e7e 100644 --- a/site/content/docs/03-run-time.md +++ b/site/content/docs/03-run-time.md @@ -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);