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

Tutorial/advanced min fulcro - routing finished #9

Merged
merged 20 commits into from
Oct 8, 2021

Conversation

holyjak
Copy link
Contributor

@holyjak holyjak commented Oct 4, 2021

First part of the tutorial requested by #8


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
Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@holyjak
Copy link
Contributor Author

holyjak commented Oct 5, 2021

@hukka I have pushed an update adressing some of your comments

@holyjak holyjak merged commit 79bcc23 into master Oct 8, 2021
@holyjak holyjak deleted the tutorial/advanced-min-fulcro branch October 8, 2021 15:50
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

Successfully merging this pull request may close these issues.

2 participants