diff --git a/docs/route/error-element.md b/docs/route/error-element.md index b95327a656..276586cf2e 100644 --- a/docs/route/error-element.md +++ b/docs/route/error-element.md @@ -64,7 +64,7 @@ Here's a "not found" case in a [loader][loader]: if (res.status === 404) { throw new Response("Not Found", { status: 404 }); } - const home = res.json(); + const home = await res.json(); const descriptionHtml = parseMarkdown( data.descriptionMarkdown );