79812328

Date: 2025-11-07 12:25:01
Score: 2
Natty:
Report link

Perhaps you should just include the refs in the dependency array. Refs themselves are stable, but can you really guarantee that the function is not called with different refs? It might not be possible in your current arrangement, but having the refs in your dependency array might protect you from future bugs if that ever happens.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Alexander Wiklund