fulcro

Book: http://book.fulcrologic.com, Community Resources: https://fulcro-community.github.io/, RAD book at http://book.fulcrologic.com/RAD.html
zhuxun2 2021-04-20T21:15:13.162500Z

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

Jakub Holý 2021-04-22T18:50:46.181800Z

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.

zhuxun2 2021-04-26T04:22:54.251800Z

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

Jakub Holý 2021-04-26T08:50:42.253100Z

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

nivekuil 2021-04-20T22:36:18.163Z

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

zhuxun2 2021-04-20T23:16:55.163400Z

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

nivekuil 2021-04-20T23:25:02.163700Z

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