Browse Source

app init system action

pull/1/head
Tim Glasgow 2 years ago
parent
commit
05bd5d9bf7
  1. 19
      squarenotsquare/redux/actions/SystemActions.js

19
squarenotsquare/redux/actions/SystemActions.js

@ -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…
Cancel
Save