Fix re-renders from adding too many dependencies to useEffect (#2123)

Co-authored-by: Alex Hancock <alexhancock@block.xyz>
This commit is contained in:
Zane
2025-04-10 08:54:10 -07:00
committed by GitHub
parent 6b173682e0
commit 4b9cb74402
7 changed files with 10 additions and 23 deletions
@@ -32,7 +32,8 @@ export default function ExtensionsSection() {
useEffect(() => {
fetchExtensions();
}, [fetchExtensions]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const handleExtensionToggle = async (extension: FixedExtensionEntry) => {
// If extension is enabled, we are trying to toggle if off, otherwise on