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?
Published at
2024-07-03 14:23:25Event JSON
{
"id": "3e9cbd0b3b008481bb902a082ddd4ee2643fc3a77b30cb68bfd314bd9fe8345a",
"pubkey": "f86500d735ea38e3a46676bcd70601111127eb346aa80670240772c8b73bebc5",
"created_at": 1720016605,
"kind": 1,
"tags": [
[
"proxy",
"https://indieweb.social/@nachtfunke/112723008273109397",
"web"
],
[
"proxy",
"https://indieweb.social/users/nachtfunke/statuses/112723008273109397",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://indieweb.social/users/nachtfunke/statuses/112723008273109397",
"pink.momostr"
],
[
"expiration",
"1722608607"
]
],
"content": "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?\n\nIt 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?",
"sig": "4079c0e965f46e6b0d0c05fcc9a6dab1c69cc4090ab941d4270dbcb26a3091b39be9049b35ff5f6988f48f4d6d92256ecd3d7d01e8436b427267f7e7dc68cb46"
}