Skip to content

Commit 68e87e4

Browse files
trueadmRich-Harris
andauthored
Update packages/svelte/src/reactivity/date.js
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 parent dbb0a72 commit 68e87e4

File tree

1 file changed

+1
-1
lines changed
  • packages/svelte/src/reactivity

1 file changed

+1
-1
lines changed

packages/svelte/src/reactivity/date.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class SvelteDate extends Date {
3232
if (method.startsWith('get') || method.startsWith('to')) {
3333
// @ts-ignore
3434
proto[method] = function (...args) {
35-
// If we have no params, then don't cache or create a derived
35+
// don't memoize if there are arguments
3636
// @ts-ignore
3737
if (args.length > 0) {
3838
get(this.#time);

0 commit comments

Comments
 (0)