Skip to content

Commit

Permalink
[docs] Fix useResource() example
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed Jul 11, 2019
1 parent f747341 commit 236507b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/useResource.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function Posts() {
function PostWithAuthor() {
const post = useResource(PostResource.detailShape(), { id });
// post as PostResource
const author = useResource(UserResource.singleResource(), {
const author = useResource(UserResource.detailShape(), {
id: post.userId,
});
// author as UserResource
Expand Down

0 comments on commit 236507b

Please sign in to comment.