condo icon indicating copy to clipboard operation
condo copied to clipboard

fix(condo): no more useless react warnings

Open pahaz opened this issue 1 year ago • 4 comments

🥳🥳🥳

image

pahaz avatar Nov 12 '24 14:11 pahaz

Why do you suppress all warning on the entire body?

In reality, we do not have and will never have any attributes in the body. However, this warning is quite common and will always appear, negatively impacting the developer experience (DX) for external contributions and local development.

I don't see a significant issue with adding this to the body and html since we won't be passing any attributes there. This approach would also help avoid unnecessary distractions from additional warnings. I would prioritize DX in this case, as attributes are often passed in the body. I don't perceive any substantial risks of accidental errors arising from this. Currently, I've had to address more than four warnings because everyone is accustomed to their presence. Therefore, I want to enhance the local development experience so that even warnings from third-party extensions do not divert attention.

pahaz avatar Nov 14 '24 11:11 pahaz

Why do you suppress all warning on the entire body?

In reality, we do not have and will never have any attributes in the body. However, this warning is quite common and will always appear, negatively impacting the developer experience (DX) for external contributions and local development.

I don't see a significant issue with adding this to the body and html since we won't be passing any attributes there. This approach would also help avoid unnecessary distractions from additional warnings. I would prioritize DX in this case, as attributes are often passed in the body. I don't perceive any substantial risks of accidental errors arising from this. Currently, I've had to address more than four warnings because everyone is accustomed to their presence. Therefore, I want to enhance the local development experience so that even warnings from third-party extensions do not divert attention.

Does this only affects body? Because I'm worried about its behaviour, if hydration error occurred in children, will it be thrown?

SavelevMatthew avatar Nov 14 '24 13:11 SavelevMatthew

According to react docs, it will suppress on children's too... 🤔 image

I've found out, that not deep check, but I'm wondering how its work on this top level

SavelevMatthew avatar Nov 14 '24 13:11 SavelevMatthew