79417921

Date: 2025-02-06 12:41:06
Score: 2
Natty:
Report link

I'd opt for introducing a state variable that shows whether the code inside the effect has executed. Then, inside the effect of course, you set the variable to true. In this way, the code is more explicit of what is happening, although it is not so savvy so to say.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Paul Pacurar