Replies: 1 comment
-
FYI I am trying to replicate the problem in rad-demo, so far without success |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am running into an issue with Fulcro 3.4 and RAD 1.0.8 where the UI shows the (non-default) router target in an uninitialized state while the router believes that it is displaying the default target. I still cannot figure out why.
I have three nested routers (along with some other components):
RootRouter
>OrgRouter
>OrgDashboard
for org id=nnn >DetailsDisplayRouter
with:targets [LatestBillRunList SubscriberList]
and the URL .../org/123/subscribers and I expect to see theSubscriberList
RAD report - which I do, but it is empty, even though the DB has the data, because the parent router believes it is displaying the other report . This only happens when I go to the URL in the browser, not when I click myself through the app to the state.So how is it possible that DetailsDisplayRouter believes it is displaying LatestBillRunList while it should, and the UI does, show SubscriberList?!
I understand why the report is empty despite the presence of its data - Fulcro believes it is not showing so it does not send it any props - and I guess that the LatestBillRunList is there because it is the default target and somehow the routing to the deferred target of the SubscriberList has not completed correctly (no idea why/how, since the tx log shows
:ready!
) in which case the router falls back to the previous or default target. Noteworthy: the UISM state is as I expect it to be, only the router is wrong.The state of of the DB seems inconsistent when I compare the router and the corresponding UISM:
so the router and its UISM have completely different view of the world?! How is that possible?
Transaction log extract
(the times, such as :40, are the seconds parts of the timestamps so newest comes first below)
where "SM" means "State Machine"
Noteworthy:
load!
-ing 2 things via deferred routes, theOrgDashboard
data (for org-nr 123) and theSubscriberList
report (that gets the org nr also passed and uses it in its query). The child - the report - finished earlier and so itstarget-ready
is triggered earlier, followed bytarget-ready
of its parent. Could this cause issues?Console log
(newest last; UISM = [com.fulcrologic.fulcro.ui-state-machines:?], DR = [dynamic-routing:*])
Weird stuff:
Questions
Replication
I have created https://github.com/holyjak/fulcro-rad-demo/tree/issue/reload%3Ddiscrepancy-UIxUISMxrouter to replicate the problem, see its README.
Beta Was this translation helpful? Give feedback.
All reactions