Fork me on GitHub
#fulcro
<
2021-04-20
>
zhuxun221:04:13

Hmm, seems like df/load! does not support loading a list of idents in one transaction... do we need to implement that ourselves?

nivekuil22:04:18

what do you mean? df/load uses a component's query, and the ident is just where that query is rooted, and a query can't have more than one root, so it can't have more than one ident. You can use targeting to merge query result to other places in your state if that's what you're trying to do

zhuxun223:04:55

Basically, I would like to have multiple df/load! s merged into one transaction, using the default actions that come with df/load!.

nivekuil23:04:02

tony was recently working on having just that happen automatically, actually https://github.com/fulcrologic/fulcro/commit/35a47b26f366833de26b496a1902b5232dba1431

Jakub Holý18:04:46

Also, why do you need that? Perhaps there is another solution? If you were loading Persons, you could have a resolver for all-people, perhaps parameterized to limit which ones to return.

zhuxun204:04:54

@U0522TWDA Because this list is determined by the client. For example, it is based on a box selection in the UI.

Jakub Holý08:04:42

I see. Still, you could make a parametrized resolver that takes a list of IDs and use that. No?