pathom

:pathom: https://github.com/wilkerlucio/pathom/ & https://pathom3.wsscode.com & https://roamresearch.com/#/app/wsscode
henrik 2021-05-03T05:38:38.275400Z

@wilkerlucio [Pathom 3] I just noticed that if I provide both an ident and params, (pco/params env) comes out as {}. Params do come through when I use a root query instead of an ident. Is this normal/intended/a known problem?

henrik 2021-05-03T07:09:02.275900Z

I just worked around it like this for now:

(if (empty? params)
  (get-in env [::pcp/graph
               ::pcp/source-ast
               :params])
  params)

wilkerlucio 2021-05-03T12:40:46.277200Z

can you send an example? without it its hard for me to understand what you are trying to do

nivekuil 2021-05-03T06:20:12.275700Z

oh I ran into that too. forgot to follow up on it

henrik 2021-05-03T07:09:02.275900Z

I just worked around it like this for now:

(if (empty? params)
  (get-in env [::pcp/graph
               ::pcp/source-ast
               :params])
  params)

wilkerlucio 2021-05-03T12:40:46.277200Z

can you send an example? without it its hard for me to understand what you are trying to do