Fix re-renders from adding too many dependencies to useEffect (#2123)
Co-authored-by: Alex Hancock <alexhancock@block.xyz>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user