Skip to content

Commit

Permalink
[docs:query] add useQuery() manual call example at overview pt2 (#1272)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryota-murakami authored Jul 9, 2021
1 parent 4f9a7b8 commit 7985091
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/tutorials/rtk-query.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ export default function App() {
// highlight-start
// Using a query hook automatically fetches data and returns query values
const { data, error, isLoading } = useGetPokemonByNameQuery('bulbasaur')
// Individual hooks are also accessible under the generated endpoints:
// const { data, error, isLoading } = pokemonApi.endpoints.getPokemonByName.useQuery('bulbasaur')
// highlight-end

return (
Expand Down

0 comments on commit 7985091

Please sign in to comment.