You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed two things:
BaseUrl is initalised with a custom function instead of one of the helpers on BaseUrl. Are the built-in helpers not enough? (Why?) If so, should we move that takeWhile function into BaseUrl as a new helper?
val routerEngine = ... ; val router = .... There are already defs in RouterRules that do the same thing. > Do you I think I should just change them to vals?
the defs create a new router every time they are called, so that's why I put it into a val
routerComponent is realistically used only once, so it doesn't really matter, it could be def as well
the BaseUrl stuff is just to support the client-only version, where the URL contains a long path into the "filesystem" due to the way the workspace plugin works
The text was updated successfully, but these errors were encountered:
New router that:
* uses an ADT to represent pages
* allows rules to be composed and then modified collectively
* clarifies the difference between Router component and controller
* accomodates stateful logic
Addresses #96, #103, #102, #94
New router that:
* uses an ADT to represent pages
* allows rules to be composed and then modified collectively
* clarifies the difference between Router component and controller
* accomodates stateful logic
Addresses #96, #103, #102, #94
From
MainRouter
in ochrons/scalajs-spa-tutorial.The text was updated successfully, but these errors were encountered: