What is Nostr?
Thomas Michael Semmler /
npub1lpj…5j0h
2024-07-03 14:23:25

Thomas Michael Semmler on Nostr: eslint's exhaustive deps warning warning are fucking dumb. Should I refactor all ...

eslint's exhaustive deps warning warning are fucking dumb. Should I refactor all functions that I use to useCallback() because it believes that it must be included with every hook because _it could change_? What the fuck is this supposed to help me with?

It is wise enough to detect dependencies but is too dumb to understand that this "dependency" is a function declaration, not an expression and won't change?
Author Public Key
npub1lpjsp4e4aguw8frxw67dwpspzygj06e5d25qvupyqaev3dema0zssa5j0h