I'm trying out the latest fulcro-with-statecharts demo and having a bit of trouble running the app. The login route is not rendering for some reason. The Root component renders (uir/ui-current-subroute this comp/factory) but I'm still seeing the following log warning:
No subroute to render for com.example.ui/Root. Did you remember to use ui-current-subroute in its parent?Yeah, I’m sorry I’ve left things a little in limbo as I’ve been distracted by other things. I may have evolved the library in a way that broke the demo, or maybe I just didn’t realize I left the demo in a bad state.
I did get this working with statechart routing. I used the demo as a reference, and vaguely recall having to tweak client.cljs quite a bit to get it working. Excuse my crappy code, I'm not really a programmer, but I do have the login working with statecharts routing. https://gitlab.com/michaelwhitford/gailish/-/blob/main/src/main/us/whitford/gailish/client.cljs?ref_type=heads
Manually triggering :event/login with email and password shows the AccountList route just fine so I don't believe the issue is related to the (uir/ui-current-subroute this comp/factory) in Root component. In this case the LoginForm component is not being rendered.
Looking at my git history I made quite a few changes to ui/root.cljc as well related to login. My original app was based on a very old copy of the template before many things were added to it. I don't remember specifically all the problems I had, but I do remember it taking me about a week to get it all working when I originally thought it would take just a day or two.
Wondering if others have faced this release build warning for joda?
[:main] Compiling ...
------ WARNING #1 - -----------------------------------------------------------
Resource:
unknown @define variable _SINGLEQUOTE_goog.DEBUG
--------------------------------------------------------------------------------
------ WARNING #2 - -----------------------------------------------------------
File: ~/.m2/repository/com/fulcrologic/fulcro-rad/1.6.10/fulcro-rad-1.6.10.jar!/com/fulcrologic/rad/type_support/js_joda_base.cljs:7:6
--------------------------------------------------------------------------------
4 | (:require
5 | ["@js-joda/core" :as js-joda]))
6 |
7 | (set! js/JSJoda js-joda)
------------^-------------------------------------------------------------------
constant JSJoda assigned a value more than once.
Original definition at externs.shadow.js:6
--------------------------------------------------------------------------------
8 |
--------------------------------------------------------------------------------
nil