codeforbtv / cvoeo-app

The "Money on My Mind" app helps CVOEO's Reach-Up clients stay on track with their personal finance coaching.
Apache License 2.0
11 stars 4 forks source link

Implement loading page during login and profile load #104

Closed jfenner closed 5 years ago

jfenner commented 5 years ago

During application startup, the login page is displayed temporarily before the user logs in. If the user is already registered and not logging in then the page should either be hidden or disabled.

Also, when the dashboard is loading the goalArray information, a transparent "loading" page should be displayed.

jfenner commented 5 years ago

Per @johnneed, this can be fixed by using redux-persist.

johnneed commented 5 years ago

You now have redux-persist which populates your app state before rendering.

if you check for a user in app-state (redux store) to determine which screen to show (login or app-home) this should fix your login screen issue.

johnneed commented 5 years ago

This fixed with the addition of a persistent store