Common misconceptions and pitfalls in Fulcro.
You query the client DB, not the server!
A common misconception is that the Root’s
:query is used to
load! the app data, i.e. that something like
Root query → load! → Root props → rendered UI is happening. It is not. What is happening is
Root query → client DB → Root props → rendered UI. You can use a query to also load some data from the backend to feed the client DB but this is up to you, has nothing to do with the just described cycle, and does not need to happen. Also, you essentially never
load! the Root query. Instead, you load data for distinct UI subtrees, i.e. sub-queries. So these are two orthogonal, independent processes: rendering client data into the UI and feeding the client database.