UNPKG

472 BJavaScriptView Raw
1/**
2 * react-router v8.0.0
3 *
4 * Copyright (c) Remix Software Inc.
5 *
6 * This source code is licensed under the MIT license found in the
7 * LICENSE.md file in the root directory of this source tree.
8 *
9 * @license MIT
10 */
11//#region lib/server-runtime/warnings.ts
12const alreadyWarned = {};
13function warnOnce(condition, message) {
14 if (!condition && !alreadyWarned[message]) {
15 alreadyWarned[message] = true;
16 console.warn(message);
17 }
18}
19//#endregion
20export { warnOnce };