Fork me on GitHub
#fulcro
<
2020-04-20
>
roklenarcic21:04:44

looking at :pre-merge example… should the function return normalized or denormalized entity data ?

roklenarcic22:04:07

I am currently trying this as my form component’s pre-merge

(defn form-pre-merge [class {:keys [data-tree current-normalized] :as p}]
  (merge current-normalized
         (fs/add-form-config data-tree class)))
and it seems to end up with non-normalized form config in the state, which causes an error

wilkerlucio23:04:07

it can return both

wilkerlucio23:04:19

denormalized data with queries will continue the normalization process

roklenarcic07:04:30

how does one return denormalized data with queries?

roklenarcic07:04:37

ah I see by source that it requires denormalized data and that the reason why it’s not normalizing my form config is that it is not part of the load! query

roklenarcic11:04:36

but you say that I can return data with a different query attached? It currently looks like I cannot add ui-centric properties in pre-merge if they require normalization

folcon23:04:43

Not sure if anyone else has been trying to work this out, but got a half decent way of getting consistent sessions over http and websockets… It’s pretty straightforward… https://folcon.github.io/post/2020-04-20-Shared-Websocket-Sessions-with-Fulcro/

👀 8
twashing23:04:52

I’m trying to understand Dynamic Routing. And while the concepts are pretty straightforward. Something about the API isn’t clicking. I’ve tried to layout what I’ve done. While I crawl through this some more, is there anything obvious I’m missing? https://stackoverflow.com/questions/61333783/howto-set-up-dynamic-ui-routing-for-a-simple-fulcro-app