Fork me on GitHub
#fulcro
<
2023-06-05
>
Eric Dvorsak21:06:04

Is there a function to merge two queries from two components that have the same ident (in the query of a defsc)?

tony.kay01:06:04

queries are just data, so they can be declared as data and manipulated as data. There are also functions in the EQL library itself for converting to AST form, etc.

tony.kay02:06:47

Those do not dedupe the items though

Eric Dvorsak16:06:57

thank you! merge queries is exactly what I was looking for, I was just looking for it in fulcro and which explains why I came empty handed

Jakub Holý (HolyJak)21:06:14

Out of curiosity, why do you need this?

Eric Dvorsak13:06:09

@U0522TWDA I had a root query to get the current timeframe, and wanted to grab attributes for two different component that both relied on the timeframe but needed different attributes. I wanted to have them separated because one has expensive attributes