Skip to content

Commit ae925ba

Browse files
authored
Add missing await in errorElement example code in docs (#9828)
1 parent 4f3ad7b commit ae925ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/route/error-element.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Here's a "not found" case in a [loader][loader]:
6464
if (res.status === 404) {
6565
throw new Response("Not Found", { status: 404 });
6666
}
67-
const home = res.json();
67+
const home = await res.json();
6868
const descriptionHtml = parseMarkdown(
6969
data.descriptionMarkdown
7070
);

0 commit comments

Comments
 (0)