fix/suppress new react-hooks/preserve-manual-memoization errors

eslint-plugin-react-hooks bumped from 7.0.1 to 7.1.1 under pnpm resolution,
which tightened preserve-manual-memoization.

Real fixes:
- RichTextTag: correct typo'd optional chain in deps array
- ContentHider: match post-guard narrowing in deps array
- ProfileHoverCard: add (stable) dispatch to deps arrays

Bulk-suppress the remaining 6 cases where the compiler can't preserve
memoization across a memo boundary; those need real refactors, follow-up.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-05-12 15:12:01 +03:00
parent bcc71abee6
commit b2fe054c7d
4 changed files with 22 additions and 8 deletions
+14
View File
@@ -152,6 +152,9 @@
"src/components/dialogs/PostInteractionSettingsDialog.tsx": {
"@typescript-eslint/no-explicit-any": {
"count": 2
},
"react-hooks/preserve-manual-memoization": {
"count": 1
}
},
"src/components/dialogs/lists/CreateOrEditListDialog.tsx": {
@@ -402,6 +405,9 @@
"src/screens/PostThread/index.tsx": {
"@typescript-eslint/no-explicit-any": {
"count": 2
},
"react-hooks/preserve-manual-memoization": {
"count": 1
}
},
"src/screens/Profile/Header/EditProfileDialog.tsx": {
@@ -547,6 +553,9 @@
"src/view/com/composer/Composer.tsx": {
"@typescript-eslint/no-explicit-any": {
"count": 2
},
"react-hooks/preserve-manual-memoization": {
"count": 3
}
},
"src/view/com/composer/drafts/state/queries.ts": {
@@ -599,6 +608,11 @@
"count": 4
}
},
"src/view/com/pager/Pager.web.tsx": {
"react-hooks/preserve-manual-memoization": {
"count": 1
}
},
"src/view/com/pager/PagerWithHeader.tsx": {
"@typescript-eslint/no-explicit-any": {
"count": 3