Skip to content

Commit

Permalink
Update part-7-rtk-query-basics.md
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson authored Dec 15, 2021
1 parent e324034 commit 19bdb1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/essentials/part-7-rtk-query-basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ RTK Query's functionality is based on a single method, called `createApi`. All o

**Your application is expected to have only one `createApi` call in it**. This one API slice should contain _all_ endpoint definitions that talk to the same base URL. For example, endpoints `/api/posts` and `/api/users` are both fetching data from the same server, so they would go in the same API slice. If your app does fetch data from multiple servers, you can either specify full URLs in each endpoint, or if necessary create separate API slices for each server.

Endpoints are normally defined directly inside the `createApi` call. If you're looking to split up your endpoints between multiple files, see [the "Injecting Endpoints" section in Part 8](https://redux.js.org/tutorials/essentials/part-8-rtk-query-advanced#injecting-endpoints) section of the docs!
Endpoints are normally defined directly inside the `createApi` call. If you're looking to split up your endpoints between multiple files, see [the "Injecting Endpoints" section in Part 8](./part-8-rtk-query-advanced.md#injecting-endpoints) section of the docs!

:::

Expand Down

0 comments on commit 19bdb1c

Please sign in to comment.