-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Appropriate routing setup (e.g. tabs and stack navigators) #128
Comments
One thing to consider, I think the exception would be if my configured server is not reachable. It may just be because the server is down, or it could truly unreachable (i.e. out of network, whatever it may be), but it may also be that the server URL has changed and needs to be updated. In the |
Great point, thanks for sharing, if there's a server connection error, I suppose the Might be worth considering some nice error handling to show the user what went wrong, but if my assumption above is correct the app should be resilient enough to handle it. Onboarding is similar to connect apart from the mobile app asking you for the url. Once the user inputs the url the app it's doing a ping request to see if the server is actually there and then forward to the login or register. |
The only time I would consider it necessary to route to the connect screen would be:
However, this is assuming there is some sort of persistence setup for the URL itself. If the server URL doesn't get persisted somewhere on the actual device yet, e.g. if it is just local state at the top-most level, then I think what you described works perfectly (and is ideal) until then! The end goal would eventually be to not have to input the URL each time you boot up the app. Granted, I haven't had much time to thoroughly review all the progress you've made, so if I'm missing something let me know!
💯 for error handling in general, but that can come after a POC if needed
That's actually sort of what the onboarding currently does 😄 but you wouldn't see it unless you started up the desktop app currently (but it is actually commented out right now lol so even then I guess you wouldn't see it haha). It does essentially what you described, taking in a URL and then ensuring the |
Totally Agree on persistence, it's something I want to work on sooner rather than later. It's a pain having to input url username and pwd every time. I'm a lazy guy 😂 |
I decided to use expo-router file based routing for the first time. I setup the project without worrying too much about the routing at all, time to fix that.
login
we should be able to go back toconnect
home
we should NOT be able to go back toconnect
orlogin
settings
settings
we should be able to go back tohome
libraries
we should go back tohome
series
we should go back tolibraries
The text was updated successfully, but these errors were encountered: