From f89238cfce329209dde462041438700e91ef6d22 Mon Sep 17 00:00:00 2001 From: Beef Date: Sun, 9 Apr 2023 19:14:32 +0100 Subject: [PATCH] [UI > Settings] Pass empty dependency array in CustomPage --- src/ui/settings/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/settings/index.tsx b/src/ui/settings/index.tsx index 98e5dee..5ab5b5a 100644 --- a/src/ui/settings/index.tsx +++ b/src/ui/settings/index.tsx @@ -49,7 +49,7 @@ export default function initSettings() { title: "Vendetta Page", render: ({ render: PageView, ...options }: { render: React.ComponentType }) => { const navigation = NavigationNative.useNavigation(); - React.useEffect(() => options && navigation.setOptions(options)); + React.useEffect(() => options && navigation.setOptions(options), []); // TODO: Is wrapping this in ErrorBoundary a good idea? return ; }