From e0ed4f7c3082081fa5ebd83489befaa719d5fd31 Mon Sep 17 00:00:00 2001 From: Tim Glasgow Date: Mon, 1 Aug 2022 22:18:38 -0500 Subject: [PATCH] navigate home after a timeout --- squarenotsquare/src/redux/actions/SystemActions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/squarenotsquare/src/redux/actions/SystemActions.js b/squarenotsquare/src/redux/actions/SystemActions.js index e9708d6..6a00bb0 100644 --- a/squarenotsquare/src/redux/actions/SystemActions.js +++ b/squarenotsquare/src/redux/actions/SystemActions.js @@ -1,11 +1,12 @@ -import { initDB } from "../../realm/DbInit"; import DbAPI from "../../realm/DbAPI"; import { APP_INIT } from "../types/SystemTypes"; +import { squareNav } from "../../navigation/SquareNav"; export function appInit() { return async (dispatch) => { await DbAPI.initDB(); dispatch(onInit()); + setTimeout(() => squareNav('Home'), 1000); } }