From c73550ef3b175fd9a536a5419b6d3c5e5d5d30bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=A6n=20Hansen?= Date: Mon, 19 Jan 2026 16:44:47 +0100 Subject: [PATCH] Update fetching-external-api.md Going through the tutorial, it seems the return type of this Route.useLoaderData is automatically inferred. --- docs/start/framework/react/tutorial/fetching-external-api.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/start/framework/react/tutorial/fetching-external-api.md b/docs/start/framework/react/tutorial/fetching-external-api.md index a9bb06c0345..486a5f86fcd 100644 --- a/docs/start/framework/react/tutorial/fetching-external-api.md +++ b/docs/start/framework/react/tutorial/fetching-external-api.md @@ -218,10 +218,7 @@ Finally, let's create the main component that consumes the loader data: ```tsx // MoviesPage component const MoviesPage = () => { - const { movies, error } = Route.useLoaderData()<{ - movies: Movie[] - error: string | null - }>() + const { movies, error } = Route.useLoaderData() return (