Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove or handle icons were reregistered warning in react?

warning- react_devtools_backend.js:2273 Some icons were re-registered. Applications should only call registerIcons for any given icon once. Redefining what an icon is may have unintended consequences. Duplicates include: GlobalNavButton, ChevronDown, ChevronUp, Edit, Add, Cancel, More, Settings, Mail, Filter (+ 3592 more) Is there any way to compile and remove this warning.

like image 295
Sarfraj Ansari Avatar asked Oct 30 '25 15:10

Sarfraj Ansari


1 Answers

import { setIconOptions } from "office-ui-fabric-react/lib/Styling";

// Suppress icon warnings.
setIconOptions({
  disableWarnings: true,
});
like image 145
Sarfraj Ansari Avatar answered Nov 02 '25 07:11

Sarfraj Ansari



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!