diff --git a/src/routes/solid-start/building-your-application/data-loading.mdx b/src/routes/solid-start/building-your-application/data-loading.mdx
index 21b6c646f..4ce964651 100644
--- a/src/routes/solid-start/building-your-application/data-loading.mdx
+++ b/src/routes/solid-start/building-your-application/data-loading.mdx
@@ -23,7 +23,7 @@ export default function Page() {
return (await response.json()) as User[];
});
- return
{users() && users()!.map((user) => - {user.name}
)}
;
+ return {(user) => {user.name}};
}
```
@@ -54,7 +54,7 @@ export const route = {
export default function Page() {
const users = createAsync(() => getUsers());
- return {users() && users()!.map((user) => - {user.name}
)}
;
+ return {(user) => {user.name}};
}
```
@@ -96,6 +96,6 @@ export const route = {
export default function Page() {
const users = createAsync(() => getUsers());
- return {users() && users()!.map((user) => - {user.name}
)}
;
+ return {(user) => {user.name}};
}
```