[UI > Settings] Pass empty dependency array in CustomPage
This commit is contained in:
parent
4e1df66cc1
commit
f89238cfce
1 changed files with 1 additions and 1 deletions
|
@ -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 <ErrorBoundary><PageView /></ErrorBoundary>;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue