We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a6dc3cf + 5ac5882 commit 6d5286aCopy full SHA for 6d5286a
docs/rtk-query/overview.md
@@ -152,7 +152,9 @@ import { useGetPokemonByNameQuery } from './services/pokemon'
152
export default function App() {
153
// Using a query hook automatically fetches data and returns query values
154
const { data, error, isLoading } = useGetPokemonByNameQuery('bulbasaur')
155
-
+ // Individual hooks are also accessible under the generated endpoints:
156
+ // const { data, error, isLoading } = pokemonApi.endpoints.getPokemonByName.useQuery('bulbasaur')
157
+
158
// render UI based on data and loading state
159
}
160
```
0 commit comments