Skip to content

Commit 2492ed1

Browse files
authored
docs(angular-query): fix error in code snippet (#9645)
1 parent 7f0e716 commit 2492ed1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/framework/angular/guides/placeholder-query-data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class BlogPostComponent {
4545
placeholderData: () => {
4646
// Use the smaller/preview version of the blogPost from the 'blogPosts'
4747
// query as the placeholder data for this blogPost query
48-
return queryClient
48+
return this.queryClient
4949
.getQueryData(['blogPosts'])
5050
?.find((d) => d.id === this.postId())
5151
},

0 commit comments

Comments
 (0)