Skip to content

Commit 3eec5eb

Browse files
committed
Don't pass options to memo initial value in createPolled
Related to #808
1 parent a8e5824 commit 3eec5eb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/crazy-rats-knock.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@solid-primitives/timer": patch
3+
---
4+
5+
Fix passing signal options to createPolled memo to the inintialValue param.

packages/timer/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export function createPolled<T>(
178178
if (isServer) {
179179
return fn as Accessor<T>;
180180
}
181-
const memo = createMemo(() => createSignal(fn(value), options), options);
181+
const memo = createMemo(() => createSignal(fn(value), options));
182182
createTimer(() => memo()[1](fn), timeout, setInterval);
183183
return () => memo()[0]();
184184
}

0 commit comments

Comments
 (0)