Skip to content

Commit 7b0bda7

Browse files
committed
docs: fix suspense example
Closes TanStack#1078
1 parent c2eca7e commit 7b0bda7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/suspense/src/queries.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import axios from "axios";
22

3-
let count = 0;
3+
// let count = 0;
44

55
export async function fetchProjects(key) {
66
console.info("fetch projects");
7-
if (count < 4) {
8-
count++;
9-
throw new Error("testing");
10-
}
7+
// if (count < 4) {
8+
// count++;
9+
// throw new Error("testing");
10+
// }
1111
let { data } = await axios.get(
1212
`https://api.github.com/users/tannerlinsley/repos?sort=updated`
1313
);

0 commit comments

Comments
 (0)