Tim Glasgow
2 years ago
1 changed files with 19 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||
import { initDB } from "../../realm/dbInit"; |
|||
import { realmDB } from "../../realm/dbAPI"; |
|||
import { APP_INIT } from "../types/SystemTypes"; |
|||
|
|||
export function appInit() { |
|||
return async (dispatch) => { |
|||
await initDB(); |
|||
dispatch(onInit()); |
|||
} |
|||
} |
|||
|
|||
function onInit() { |
|||
dispatch({ |
|||
type: APP_INIT |
|||
//system: system
|
|||
//user: user
|
|||
//score: score
|
|||
}); |
|||
} |
Loading…
Reference in new issue