From 209cf9d16fa41ea94fd9d8f129e10bcec7d029d6 Mon Sep 17 00:00:00 2001 From: Brenley Dueck Date: Tue, 3 Mar 2026 15:12:14 -0600 Subject: [PATCH] bug reproducer --- examples/ssr/shared/src/components/Home.js | 25 ++++++++-------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/examples/ssr/shared/src/components/Home.js b/examples/ssr/shared/src/components/Home.js index 55bd3d68..0d9366e9 100644 --- a/examples/ssr/shared/src/components/Home.js +++ b/examples/ssr/shared/src/components/Home.js @@ -1,21 +1,14 @@ -import { createSignal, onSettled } from "solid-js"; +import { createSignal, createMemo } from "solid-js"; const Home = () => { - const [s, set] = createSignal(0); - onSettled(() => { - const t = setInterval(() => { - const newVal = s() + 1; - set(newVal); - }, 100); - return () => { - clearInterval(t); - }; - }); + const [n, setN] = createSignal(0); + const doubleQuery = createMemo(() => n() * 2); + return ( - <> -

Welcome to this Simple Routing Example

-

Click the links in the Navigation above to load different routes.

- {s()} - +
+
n: {n()}
+
double: {doubleQuery()}
+ +
); };