Skip to content

Commit 8fbfa37

Browse files
authored
logging (#139)
1 parent 6b7d2ba commit 8fbfa37

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/routes/index.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,15 @@ import Top from '~/components/sections/top';
99

1010
export default function Home() {
1111
const [connectors, setConnectors] = createSignal<string[]>();
12+
console.log('Loaded Component');
13+
console.log(connectors());
14+
setInterval(() => console.log(connectors()), 1000);
1215
onMount(async () => {
13-
const connectors = await getConnectors();
14-
setConnectors(connectors);
16+
console.log('Mounting...');
17+
const fetchedConnectors = await getConnectors();
18+
console.log('Got connectors', fetchedConnectors);
19+
setConnectors(fetchedConnectors);
20+
console.log('Set connectors', connectors());
1521
});
1622
return (
1723
<main>

0 commit comments

Comments
 (0)