We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68e97c3 commit f4a9e80Copy full SHA for f4a9e80
src/routes/guides/routing-and-navigation.mdx
@@ -273,7 +273,7 @@ async function fetchUser(id) {
273
274
const User = () => {
275
const params = useParams();
276
- const [data] = createResource(params.id, fetchUser); // Pass the id parameter to createResource
+ const [data] = createResource(() => params.id, fetchUser); // Pass the id parameter to createResource
277
278
return (
279
<div>
0 commit comments