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

3.8k views Asked by At

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.

1

There are 1 answers

1
Sarfraj Ansari On

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

// Suppress icon warnings. setIconOptions({ disableWarnings: true, });