This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-06-05
Channels
- # announcements (11)
- # architecture (22)
- # babashka (33)
- # beginners (15)
- # biff (8)
- # calva (7)
- # clj-otel (1)
- # cljs-dev (3)
- # cljsrn (5)
- # clojure (76)
- # clojure-art (1)
- # clojure-europe (36)
- # clojure-hamburg (3)
- # clojure-nl (1)
- # clojure-norway (7)
- # clojure-poland (12)
- # clojure-spec (2)
- # clojure-uk (7)
- # clojurescript (9)
- # cursive (22)
- # data-science (6)
- # datomic (7)
- # fulcro (9)
- # hoplon (14)
- # instaparse (2)
- # jobs-discuss (14)
- # london-clojurians (1)
- # matrix (32)
- # music (1)
- # nbb (8)
- # off-topic (18)
- # pathom (29)
- # pedestal (6)
- # portal (34)
- # reagent (2)
- # reitit (4)
- # releases (1)
- # sci (10)
- # shadow-cljs (7)
- # tools-deps (4)
- # vim (6)
Is there a function to merge two queries from two components that have the same ident (in the query of a defsc)?
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.
Perhaps this: https://github.com/edn-query-language/eql/blob/main/src/edn_query_language/core.cljc#L369
or this https://github.com/edn-query-language/eql/blob/main/src/edn_query_language/core.cljc#L398
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
Out of curiosity, why do you need this?
@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
I see. Thank you!