Skip to content

[Router] Stay SignedIn Using Nylo #59

Answered by agordn52
degalih asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @degalih,

Try doing the following:

  • Change the HomePage.path variable to "/home-page"
  • Next, go to your routes/router.dart file and ensure that one of the routes is set to the initialRoute e.g.
router.route(HomePage.path,  (context) => HomePage(), initialRoute: true);

router.route(RecipePage.path,  (context) => RecipePage(), authPage: true);
  • Lastly, go to your app/providers/route_provider.dart file and ensure that nylo.setInitialRoute(NyRouter.getInitialRoute()); is called in the afterBoot method.

Does that fix your issue?
Anthony

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@degalih
Comment options

@agordn52
Comment options

Answer selected by degalih
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants