Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

wrap root view in memo

ammarahm-ed667f46b5afc7
diff --git a/apps/mobile/initializer.root.js b/apps/mobile/initializer.root.js
index b029891dc..ecaaecdb5 100644
--- a/apps/mobile/initializer.root.js
+++ b/apps/mobile/initializer.root.js
@@ -64,10 +64,11 @@ const onChangeTab = async (obj) => {
}
};
-export const RootView = () => {
+export const RootView = React.memo(() => {
const [state] = useTracked();
const {colors, intentMode} = state;
+
return (
<>
{intentMode ? (
@@ -86,7 +87,7 @@ export const RootView = () => {
<DialogManager colors={colors} />
</>
);
-};
+}, () => true);
let updatedDimensions = {
width: width,