Skip to content

Commit 13f8ef1

Browse files
authored
solid template minor fixes (#17)
* solid store addon - fixed signal read in component * fixed signal read in page 2 * removed global Solid import in root.tsx * Removed global solid import in main.tsx
1 parent 48200e3 commit 13f8ef1

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

templates/solid/add-on/store/assets/src/routes/demo.store.page1.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function App() {
1212

1313
return (
1414
<div class="p-4 flex flex-col gap-2">
15-
<p class="text-2xl">Global Count: {count}</p>
15+
<p class="text-2xl">Global Count: {count()}</p>
1616
<button
1717
onClick={() => {
1818
store.setState((state) => ({

templates/solid/add-on/store/assets/src/routes/demo.store.page2.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function App() {
1212

1313
return (
1414
<div class="p-4 flex flex-col gap-2">
15-
<p class="text-2xl">Global Count: {count}</p>
15+
<p class="text-2xl">Global Count: {count()}</p>
1616
<button
1717
onClick={() => {
1818
store.setState((state) => ({

templates/solid/file-router/src/main.tsx.ejs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import * as Solid from 'solid-js'
21
import { RouterProvider, createRouter } from '@tanstack/solid-router'
32
import { render } from 'solid-js/web'
43

templates/solid/file-router/src/routes/__root.tsx.ejs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import * as Solid from 'solid-js'
21
import { Outlet, createRootRouteWithContext } from '@tanstack/solid-router'
32
// import { TanStackRouterDevtools } from '@tanstack/router-devtools'<% for(const addOn of addOns) {
43
for(const imp of addOn.main?.imports || []) { %>

0 commit comments

Comments
 (0)