We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a6bdec commit 5f40814Copy full SHA for 5f40814
contributors.yml
@@ -98,6 +98,7 @@
98
- fyzhu
99
- fz6m
100
- gaspard
101
+- gavriguy
102
- Geist5000
103
- gesposito
104
- gianlucca
docs/how-to/suspense.md
@@ -18,11 +18,11 @@ import type { Route } from "./+types/my-route";
18
export async function loader({}: Route.LoaderArgs) {
19
// note this is NOT awaited
20
let nonCriticalData = new Promise((res) =>
21
- setTimeout(() => "non-critical", 5000)
+ setTimeout(() => res("non-critical"), 5000)
22
);
23
24
let criticalData = await new Promise((res) =>
25
- setTimeout(() => "critical", 300)
+ setTimeout(() => res("critical"), 300)
26
27
28
return { nonCriticalData, criticalData };
0 commit comments