Skip to content

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

fix: home not opened by default

thecodrr436788fb2839
diff --git a/apps/web/src/app.js b/apps/web/src/app.js
index b506fcb2c..a385cf928 100644
--- a/apps/web/src/app.js
+++ b/apps/web/src/app.js
@@ -39,7 +39,9 @@ function getNavigationViewWidth() {
}
function App() {
const [selectedIndex, setSelectedIndex] = useState(0);
- RootNavigator.navigate("home");
+ useEffect(() => {
+ RootNavigator.navigate("home");
+ }, []);
return (
<ThemeProvider>
<Flex