We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How can I use the goto inside the current definition?
current
I have the following route:
private lazy val current: Rx[Frag] = Rx { if(authorized()){ router.current() match { case HomeScreen => HomePage() case AboutScreen => AboutPage() case _ => router.goto(HomeScreen) } } else { router.current() match { case LoginScreen => LoginPage() case _ => router.goto(LoginScreen) } } }
This doesn't work, current appears to be empty after the goto.
goto
The text was updated successfully, but these errors were encountered:
No branches or pull requests
How can I use the goto inside the
current
definition?I have the following route:
This doesn't work,
current
appears to be empty after thegoto
.The text was updated successfully, but these errors were encountered: