Skip to content

Commit eee3e78

Browse files
committed
fix some accessor calls
1 parent 54139a0 commit eee3e78

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

examples/solid/start-basic-cloudflare/src/components/DefaultCatchBoundary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function DefaultCatchBoundary({ error }: ErrorComponentProps) {
2828
>
2929
Try Again
3030
</button>
31-
{isRoot ? (
31+
{isRoot() ? (
3232
<Link
3333
to="/"
3434
class={`px-2 py-1 bg-gray-600 dark:bg-gray-700 rounded text-white uppercase font-extrabold`}

examples/solid/start-basic-cloudflare/src/routes/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ function Home() {
2020
return (
2121
<div class="p-2">
2222
<h3>Welcome Home!!!</h3>
23-
<p>{data.message}</p>
24-
<p>{data.myVar}</p>
23+
<p>{data().message}</p>
24+
<p>{data().myVar}</p>
2525
</div>
2626
)
2727
}

examples/solid/start-basic-cloudflare/src/routes/posts_.$postId.deep.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ function PostDeepComponent() {
1919
<Link to="/posts" class="block py-1 text-blue-800 hover:text-blue-600">
2020
← All Posts
2121
</Link>
22-
<h4 class="text-xl font-bold underline">{post.title}</h4>
23-
<div class="text-sm">{post.body}</div>
22+
<h4 class="text-xl font-bold underline">{post().title}</h4>
23+
<div class="text-sm">{post().body}</div>
2424
</div>
2525
)
2626
}

examples/solid/start-basic-cloudflare/src/routes/users.$userId.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ function UserComponent() {
3030

3131
return (
3232
<div class="space-y-2">
33-
<h4 class="text-xl font-bold underline">{user.name}</h4>
34-
<div class="text-sm">{user.email}</div>
33+
<h4 class="text-xl font-bold underline">{user().name}</h4>
34+
<div class="text-sm">{user().email}</div>
3535
<div>
3636
<a
37-
href={`/api/users/${user.id}`}
37+
href={`/api/users/${user().id}`}
3838
class="text-blue-800 hover:text-blue-600 underline"
3939
>
4040
View as JSON

0 commit comments

Comments
 (0)