Skip to content

Commit 9cbc7a5

Browse files
nipunn1313thehorse2000
authored andcommitted
convex-backend PR 142: Docs: Remove 'await' from usePreloadedQuery hook reference (#38739)
Simple Change. Removing usage of await for usePreloadedQuery hook in Docs. ---- By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. Co-authored-by: Amr Osama <[email protected]> GitOrigin-RevId: e9a7bdd787e4afdb170b22cfc0acf19c5c807577
1 parent 9af9a9e commit 9cbc7a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

npm-packages/convex/src/nextjs/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* export function ClientComponent(props: {
3636
* preloaded: Preloaded<typeof api.foo.baz>;
3737
* }) {
38-
* const data = await usePreloadedQuery(props.preloaded);
38+
* const data = usePreloadedQuery(props.preloaded);
3939
* // render `data`...
4040
* }
4141
* ```

0 commit comments

Comments
 (0)