Skip to content

Commit

Permalink
update tip regarding overrideExisting to match actual behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
ben.durrant committed Mar 28, 2023
1 parent 83f2458 commit bfc36cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rtk-query/usage/code-splitting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ export const { useExampleQuery } = extendedApi
```

:::tip
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.
If you inject an endpoint that already exists and don't explicitly specify `overrideExisting: true`, the endpoint will not be overridden. In development mode, you will get a warning about this.
:::

0 comments on commit bfc36cd

Please sign in to comment.