Skip to content

Commit 7985091

Browse files
[docs:query] add useQuery() manual call example at overview pt2 (#1272)
1 parent 4f9a7b8 commit 7985091

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/tutorials/rtk-query.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ export default function App() {
188188
// highlight-start
189189
// Using a query hook automatically fetches data and returns query values
190190
const { data, error, isLoading } = useGetPokemonByNameQuery('bulbasaur')
191+
// Individual hooks are also accessible under the generated endpoints:
192+
// const { data, error, isLoading } = pokemonApi.endpoints.getPokemonByName.useQuery('bulbasaur')
191193
// highlight-end
192194

193195
return (

0 commit comments

Comments
 (0)