We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dd4b36a + c85916a commit 24fc343Copy full SHA for 24fc343
docs/rtk-query/usage/queries.mdx
@@ -292,7 +292,7 @@ function PostsList() {
292
}
293
294
function PostById({ id }: { id: number }) {
295
- // Will select the post with the given id, and will only rerender if the given posts data changes
+ // Will select the post with the given id, and will only rerender if the given post's data changes
296
const { post } = api.useGetPostsQuery(undefined, {
297
selectFromResult: ({ data }) => ({
298
post: data?.find((post) => post.id === id),
0 commit comments