Skip to content

Commit

Permalink
Fix promiseHash example (sergiodxa#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiodxa authored Apr 12, 2023
1 parent 1cb0460 commit caebba1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This function is an object version of `Promise.all` which lets you pass an objec
```ts
export async function loader({ request }: LoaderArgs) {
return json(
promiseHash({
await promiseHash({
user: getUser(request),
posts: getPosts(request),
})
Expand All @@ -32,7 +32,7 @@ You can use nested `promiseHash` to get a nested object with resolved values.
```ts
export async function loader({ request }: LoaderArgs) {
return json(
promiseHash({
await promiseHash({
user: getUser(request),
posts: promiseHash({
list: getPosts(request),
Expand Down

0 comments on commit caebba1

Please sign in to comment.