diff --git a/src/routes/guides/fetching-data.mdx b/src/routes/guides/fetching-data.mdx index 75d5b1ab8..43a94499f 100644 --- a/src/routes/guides/fetching-data.mdx +++ b/src/routes/guides/fetching-data.mdx @@ -42,7 +42,7 @@ const fetchUser = async (id) => function App() { const [userId, setUserId] = createSignal(); - const [user] = createResource(userId(), fetchUser); + const [user] = createResource(userId, fetchUser); return (
@@ -109,7 +109,7 @@ function App() { - Error: {user.error()} + Error: {user.error.message}
{JSON.stringify(user())}