Closed bobbymannino closed 1 year ago
Having a date store would just save time in the case of needing a clock or something like that.
import { readable } from "svelte/store"; export const date = readable(new Date(), (set) => { const interval = setInterval(() => { set(new Date()); }); return () => clearInterval(interval); });
Hopefully something like that would be useful
thank you
Feel free to submit a PR including this store and docs!!
Handled
Having a date store would just save time in the case of needing a clock or something like that.
Hopefully something like that would be useful
thank you