This commit prevents the user from accessing routes they shouldn't.
Close #12
Add ProtectedRoute component, which verifies a condition based on Redux data before rendering a route. On failure, the user is redirected to a provided fallback.
Add simple Condition component to conditionally render components.
Initialize API based on Redux data. When finished, set the apiInitialized flag in the Redux state.
Use Condition to prevent rendering any routes until the API is fully initialized.
Rename files in src/reducer/ to match their Redux state coordinates.
I noticed an issue with redux-persist when the Android app first loads, I'm planning to take a look at that and maybe the Android build issue next.
This commit prevents the user from accessing routes they shouldn't. Close #12
ProtectedRoute
component, which verifies a condition based on Redux data before rendering a route. On failure, the user is redirected to a provided fallback.Condition
component to conditionally render components.apiInitialized
flag in the Redux state.Condition
to prevent rendering any routes until the API is fully initialized.src/reducer/
to match their Redux state coordinates.I noticed an issue with redux-persist when the Android app first loads, I'm planning to take a look at that and maybe the Android build issue next.