-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Called injectEndpoints
to override already-existing endpointName
#3157
Comments
That is probably due to hot module reloading reloading the file when you apply changes to it. You could try adding overrideExisting: module.hot?.status() === "apply" to the |
@phryneas Wow thanks for the quick response! The error is showing when I open the app for the first time and then if I change something the error is not shown.I am now trying the solution you wrote. Does it work in release mode as "false"? |
The warning occurs if you call |
I am calling useLoginMutation when I click a button. I don't have endpoints where I call inside useEffect or multiple times Api:
Inject endpoints:
How i call it
|
I don't know how but the problem disappeared without this solution
|
overrideExisting: module.hot?.status() === "apply" With this typescript, the error
I solved it bt utilizing the module as any overrideExisting: (module as any).hot?.status() === 'apply', |
Hello Guys, |
I'm using RTK Query with React Native and I've split the main API with injectEndpoints. I have this problem when i set overrideExisting false (DEV mode)
The text was updated successfully, but these errors were encountered: