We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8006afe commit 430037cCopy full SHA for 430037c
contributors.yml
@@ -215,6 +215,7 @@
215
- petersendidit
216
- promet99
217
- pyitphyoaung
218
+- rakleed
219
- refusado
220
- rimian
221
- robbtraister
packages/react-router/lib/deprecations.ts
@@ -4,7 +4,7 @@ import type { FutureConfig as RenderFutureConfig } from "./components";
4
const alreadyWarned: { [key: string]: boolean } = {};
5
6
export function warnOnce(key: string, message: string): void {
7
- if (!alreadyWarned[message]) {
+ if (__DEV__ && !alreadyWarned[message]) {
8
alreadyWarned[message] = true;
9
console.warn(message);
10
}
0 commit comments