Fork me on GitHub
#fulcro
<
2022-11-07
>
Quentin Le Guennec11:11:41

What is the preferred way to load a query once from the client db (as opposed to having a component depend on it) ? fdn/db->tree ? (for context I need to load data from the client db while entering a route)

Jakub Holý (HolyJak)19:11:54

I am not sure what is best but if it works… . But it sounds a little strange. Why do you need this? And what do you mean “while entering”, is that :will-enter ?

Quentin Le Guennec19:11:52

Yes indeed. It’s actually a query param to my df/load! that needs to be pulled from the app db.\

Quentin Le Guennec19:11:29

(following your tutorial on dynamic routing)

Jakub Holý (HolyJak)21:11:49

In that case I would not use df/load but a custom mutation that calls df/load and fetches whatever it needs from the state passed to it.

Quentin Le Guennec21:11:13

Oh yeah I see. Thank you.

nivekuil19:11:34

if RAD components all use-hooks? now isn't that a major performance regression for keyframe-renderer, since they lose shouldComponentUpdate?

tony.kay12:11:57

They CAN…I didn’t mean it was a defaut

tony.kay12:11:06

so, no change to existing apps

tony.kay12:11:21

and yes, that could affect performance if you choose to use hooks