Material UI console warnings in react strict mode

1.1k Views Asked by At

As fast as the application is growing the console is dirty as a footballer shirt.


What do I mean?

Material UI in strict mode throws warnings like FindDomNode, or to use strings instead of booleans in props. The problem is that the console is like a red wall in development mode, but I don't want to get rid of strict mode I want to get rid of these warnings.

I have an idea to create a 'warnings whitelist' to hide the well-known warnings, but actually, I don't know how to do it in a proper way.

The goal is to see new, more dangerous warnings/errors in the console clearly.

Perhaps there is a better way to solve my problem, but my research did nothing. If you have any idea I'll be really glad to hear it

1

There are 1 best solutions below

0
On

Specifically related to the browser console:
And not a long term solution, but if you ever need to cut down on noise.

You can use a negation filter in the browser:

-MUI

You can also filter out multiple things by delaminating with spaces.
-MUI -someOtherWarning

enter image description here