Skip to content

Commit e1f1a62

Browse files
authored
code: updated fetch call after experiencing "Failed to fetch dinosaurs" (#1522)
1 parent 578dcf6 commit e1f1a62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/tutorials/tanstack.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ import { useQuery } from "@tanstack/react-query";
186186
import { Link } from "@tanstack/react-router";
187187

188188
async function fetchDinosaurs() {
189-
const response = await fetch("http://localhost:8000/api/dinosaurs/");
189+
const response = await fetch("http://localhost:8000/api/dinosaurs");
190190
if (!response.ok) {
191191
throw new Error("Failed to fetch dinosaurs");
192192
}

0 commit comments

Comments
 (0)