Skip to content
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

SOLIDPOD: After initialising a POD the app does not redirect to the home page #149

Closed
anushkavidanage opened this issue May 22, 2024 · 4 comments

Comments

@anushkavidanage
Copy link
Collaborator

anushkavidanage commented May 22, 2024

This might be related to anusii/keypod#72

@gjwgit
Copy link
Contributor

gjwgit commented May 22, 2024

How to reproduce this?

Something's gone haywire - I delete my keypod folder on the server and I go to initialise pod page in the app and submit and it stays with the same initialise pod page.

It used to work just fine.

We really need to do testing better to avoid regressions.

@cdawei
Copy link
Collaborator

cdawei commented May 22, 2024

I did see this while working on #117, the workaround I used was to run the keypod app twice.
The first run should initialise your POD (which will fail to redirect to home page), then close the app, and the second run should allow you to use the app as before.

@cdawei
Copy link
Collaborator

cdawei commented May 23, 2024

A temporary fix is implemented in keypod here anusii/keypod#100
But to fully resolve it, we need to fix #157

@junhaow1
Copy link
Collaborator

junhaow1 commented May 23, 2024

Navigator.push:

  • This method pushes a new route onto the navigation stack.

  • The current route remains in the stack, and the new route is added on top of it.

  • When you navigate back, you return to the previous route.

Navigator.pushReplacement:

  • This method pushes a new route onto the navigation stack and removes the current route.
  • The current route is replaced by the new route, meaning it won't be in the stack anymore.
  • When you navigate back, you won't return to the previous route but to the route before it.

When to Use Each

Use Navigator.push when:

  • You want to add a new screen on top of the current screen.
  • You expect the user to potentially navigate back to the previous screen.

Use Navigator.pushReplacement when:

  • You want to replace the current screen entirely with a new screen.
  • The current screen is no longer relevant, and you don't expect the user to navigate back to it.

@cdawei cdawei closed this as completed May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants