Skip to content

Commit

Permalink
Docs: correct import statement for setupListeners (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjgwood authored Mar 22, 2021
1 parent 2a1a410 commit b7f6b42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/introduction/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ With RTK Query, you usually define your entire API definition in one place. This
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.

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

export const store = configureStore({
Expand Down

0 comments on commit b7f6b42

Please sign in to comment.