Skip to content

Commit fc7239f

Browse files
committed
note about returning an object
closes #13452
1 parent 0fe8731 commit fc7239f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/how-to/suspense.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ export async function loader({}: Route.LoaderArgs) {
2929
}
3030
```
3131

32+
Note you can't return a single promise, it must be an object with keys.
33+
3234
## 2. Render the fallback and resolved UI
3335

3436
The promise will be available on `loaderData`, `<Await>` will await the promise and trigger `<Suspense>` to render the fallback UI.

0 commit comments

Comments
 (0)