Fix docs typo with derived store

pull/3115/head
Bryan Terce 5 years ago
parent 9893435ad7
commit 5515bb49c9
No known key found for this signature in database
GPG Key ID: DF2E2829CA6E5BF4

@ -365,7 +365,7 @@ If you return a function from the callback, it will be called when a) the callba
import { derived } from 'svelte/store';
const tick = derived(frequency, ($frequency, set) => {
const interval = setInterval(() => set(Date.now()), 1000 / frequency);
const interval = setInterval(() => set(Date.now()), 1000 / $frequency);
return () => {
clearInterval(interval);

Loading…
Cancel
Save