Skip to content

Commit b7f6b42

Browse files
authored
Docs: correct import statement for setupListeners (#174)
1 parent 2a1a410 commit b7f6b42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/introduction/getting-started.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ With RTK Query, you usually define your entire API definition in one place. This
6969
An RTK service generates a "slice reducer" that should be included in the Redux root reducer, and a custom middleware that handles the data fetching. Both need to be added to the Redux store.
7070

7171
```ts title="src/store.ts"
72-
import { configureStore, setupListeners } from '@reduxjs/toolkit';
72+
import { configureStore } from '@reduxjs/toolkit';
73+
import { setupListeners } from '@rtk-incubator/rtk-query';
7374
import { pokemonApi } from './services/pokemon';
7475

7576
export const store = configureStore({

0 commit comments

Comments
 (0)