79809298

Date: 2025-11-04 19:03:17
Score: 0.5
Natty:
Report link

@DrewReese "logging in the render function is an unintentional side effect and doesn't necessarily correlate to any actual rendering to the DOM during React's "commit phase", i.e. the "expensive" part" - in a table library, executing the render function for every single item (in a list of potentially thousands) is expensive in itself, regardless of what React does to the DOM (or not). Calling the row render function for every row when just one item changes (e.g. when the checkbox state is toggled) is infeasibly costly.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @DrewReese
  • Single line (0.5):
  • Looks like a comment (1):
  • High reputation (-2):
Posted by: Bergi