Skip to content

Commit b4a5aed

Browse files
committed
Add reducerPath property in creation of api
1 parent 4fbd29f commit b4a5aed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/rtk-query/usage/migrating-to-rtk-query.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ import { Pokemon } from './types'
335335

336336
export const api = createApi({
337337
baseQuery: fetchBaseQuery({ baseUrl: 'https://pokeapi.co/api/v2/' }),
338+
reducerPath: 'pokemonApi',
338339
endpoints: (build) => ({
339340
// highlight-start
340341
getPokemonByName: build.query<Pokemon, string>({

0 commit comments

Comments
 (0)