Skip to content

Commit

Permalink
Merge pull request #1560 from jomarquez21/update-rtk-query-documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson authored Sep 30, 2021
2 parents 4fbd29f + b4a5aed commit 390dcb3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/rtk-query/usage/migrating-to-rtk-query.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ import { Pokemon } from './types'

export const api = createApi({
baseQuery: fetchBaseQuery({ baseUrl: 'https://pokeapi.co/api/v2/' }),
reducerPath: 'pokemonApi',
endpoints: (build) => ({
// highlight-start
getPokemonByName: build.query<Pokemon, string>({
Expand Down

0 comments on commit 390dcb3

Please sign in to comment.