Skip to content

Commit 7c3129c

Browse files
authored
Merge pull request #2696 from PauloRSF/clarify-overrideexisting-docs
2 parents 3de00f4 + 2abbe74 commit 7c3129c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/rtk-query/api/created-api/code-splitting.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Accepts an options object containing the same `endpoints` builder callback you w
3535

3636
Returns an updated and enhanced version of the API slice object, containing the combined endpoint definitions.
3737

38-
The `overrideExisting` flag controls a development-only warning that notifies you if there is a name clash between endpoint definitions. When set to `true`, the warning will not be printed.
38+
In development, endpoints will not be overridden unless `overrideExisting` is set to `true`. If not, a warning will be shown to notify you if there is a name clash between endpoint definitions.
3939

4040
This method is primarily useful for code splitting and hot reloading.
4141

docs/rtk-query/usage/code-splitting.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ export const { useExampleQuery } = extendedApi
5656
```
5757

5858
:::tip
59-
You will get a warning if you inject an endpoint that already exists in development mode when you don't explicitly specify `overrideExisting: true`. You **will not see this in production** and the existing endpoint will just be overriden, so make sure to account for this in your tests.
59+
In development mode, if you inject an endpoint that already exists and don't explicitly specify `overrideExisting: true`, the endpoint will not be overridden and you will get a warning about it. You **will not see the warning in production** and the existing endpoint will just be overriden, so make sure to account for this in your tests.
6060
:::

0 commit comments

Comments
 (0)