Fork me on GitHub
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.


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


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


so, no change to existing apps


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