Skip to content

Commit

Permalink
[docs-infra] Leave TODO for warnOnce to reduce bundle size
Browse files Browse the repository at this point in the history
Will help mui/mui-x#13911
  • Loading branch information
oliviertassinari authored and joserodolfofreitas committed Jul 29, 2024
1 parent b46e030 commit fd06fd6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/mui-docs/src/i18n/i18n.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export function useSetUserLanguage() {

const warnedOnce: Record<string, boolean> = {};

// TODO, migrate to use warnOnce() helper
const warn = (userLanguage: string, key: string, ignoreWarning: boolean) => {
const fullKey = `${userLanguage}:${key}`;
// No warnings in CI env
Expand Down

0 comments on commit fd06fd6

Please sign in to comment.