-
Notifications
You must be signed in to change notification settings - Fork 9
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
Tutorial/advanced min fulcro - routing finished #9
Conversation
|
||
See the https://github.com/holyjak/minimalist-fulcro-template-backendless/blob/example/bare-essentials-routing/src/com/example/ui.cljs[full code here]. | ||
|
||
=== Binding the route to the URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hukka: After reading the part about binding to the URL, I'm wondering how I should model the typical structure where there is no specific "all" route, but an empty route means all. Perhaps there should be an explicit route name in the state, even if it's not in the URL?
JH: Correct. You would use something all :route-segment ["all"]
and modify your URL<>route mapping code to replace "all" with "" when going to URL and vice versa.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hukka I have note added a NOTE inside https://github.com/fulcro-community/guides/blob/d42073683b2af0764460e7980eebedd6dda3c282/modules/tutorial-advanced-minimalist-fulcro/pages/index.adoc#binding-the-route-to-the-url explaining this, what do you think about it?
@hukka I have pushed an update adressing some of your comments |
First part of the tutorial requested by #8