0

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

programmer
  • 550
  • 2
  • 4
  • 25
  • Does this answer your question? [material-ui Drawer - findDOMNode is deprecated in StrictMode](https://stackoverflow.com/questions/61220424/material-ui-drawer-finddomnode-is-deprecated-in-strictmode) – Someone Special Feb 09 '21 at 09:46
  • You will not receive that error in production mode. If you want to not receive that error in dev go in `index.js` and remove `StrictMode` – Florin Feb 09 '21 at 09:56
  • @Florin Read the whole post before you leave a comment. And you even didn't read the title of the post, cuz react has not strict mode inside index :) – programmer Feb 09 '21 at 09:57
  • @SomeoneSpecial Nope. This unfortunately doesn't answer my question. I don't want to get rid of strict mode or use unstable components. – programmer Feb 09 '21 at 09:58
  • This is a Mui existing problem. StrictMode with console flood, or don't use strict mode. period. – Someone Special Feb 09 '21 at 10:06
  • @SomeoneSpecial I do know it. Read the whole post and you will get to know what I want to reach. – programmer Feb 09 '21 at 10:09

0 Answers0