Fork me on GitHub

Is below considered anti-pattern? I manually added :account/name to :query because I wanted to ensure that it exists regardless of whether AccountProjectList queries for it or not.

(defsc MainView [this {:session/keys [valid? account] :as props}]
  {:ident (fn [] [:component/id :session])
   :query [:session/valid?
           {:session/account (conj (comp/get-query AccountProjectList) :account/name)}]
   :initial-state {}}
    (div (str "Hello, " (:account/name account) "!"))
    (ui-account-project-list account)))


Placeholders should help with this


@souenzzo Thanks! Could you elaborate a bit?


@zhuxun2 didn't get why you didn't just add this to AccountProjectList directly?


Because AccountProjectList does not need :account/name itself. I thought AccountProjectList should not know the existence of MainView, isn't that right?


If default value of 0 is defined for a rad attribute, then the default value doesnt appear on the form. The reason being the renderer checks if the value is a bigdec, and that check fails,this is the check in the code - (cognitect.transit/bigdec? 0), I can get this to return true irrespective to what value I give to it - 0M, 0, "0", 0.0, 12.12 etc - can someone help what will be a valid value for the above expression ?

zhuxun213:06:17 When the defmutation is in a separate file, using mutation joins requires using the quoted syntax doesn't it? Otherwise there's cyclic dependency...


Crosspost: #fulcro #pathom #eql Hello I work with EQL API's for about 2 years now and I still have many doubts about how to model my query/data into EQL using fulcro/pathom. So I created a "style guide" I would be very happy to see the community participate in this process 🙂

👍 12
Joe R. Smith16:06:03

I'm running into a peculiar issue using Workspaces with Fulcro Inspect. In Fulcro Inspect I can see the workspace Root in the App dropdown, but I cannot see my Card. It's as if the card app does not exist. What is weirder is it works for a colleague - same chrome version, same fulcro inspect extension, same code version, etc. I don't think I have any more context– has anyone resolved a similar issue?


^ worth pointing out too that, along with the Root , the App dropdown also shows our.ns/ourcard-toolbar — just not our.ns/ourcard.


There is an Inspector button on each card. That focuses it in Inspect


I’d also recommend using my fork of workspaces. The nubank one is still written in F2, which means both will be on classpath and could lead you to make mistakes in your requires

Joe R. Smith17:06:15

Nothing happens when I hit the inspect button. 😕


try re-installing the extension, I've seen many cases that it got corrupted somehow

Joe R. Smith17:06:34

It works for other people, so I'm wondering what could be different for me.