This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-11
Channels
- # announcements (4)
- # aws (6)
- # babashka (40)
- # beginners (318)
- # biff (4)
- # bootstrapped-cljs (9)
- # calva (19)
- # chlorine-clover (1)
- # cider (3)
- # clj-on-windows (25)
- # cljdoc (8)
- # cljfx (1)
- # cljs-dev (30)
- # cljss (2)
- # clojure (62)
- # clojure-chile (9)
- # clojure-europe (11)
- # clojure-finland (17)
- # clojure-italy (1)
- # clojure-kc (1)
- # clojure-nl (3)
- # clojure-spec (27)
- # clojure-uk (40)
- # clojuremn (1)
- # clojurescript (51)
- # conjure (6)
- # cursive (8)
- # data-science (9)
- # datahike (4)
- # datascript (1)
- # datomic (31)
- # emacs (10)
- # emotion-cljs (1)
- # events (1)
- # figwheel-main (16)
- # find-my-lib (1)
- # fulcro (30)
- # graalvm (3)
- # graphql (12)
- # helix (16)
- # honeysql (5)
- # jobs (1)
- # jobs-discuss (10)
- # juxt (3)
- # kaocha (26)
- # lambdaisland (3)
- # leiningen (15)
- # malli (7)
- # off-topic (100)
- # pathom (8)
- # pedestal (15)
- # protojure (24)
- # re-frame (2)
- # reagent (7)
- # reitit (22)
- # remote-jobs (1)
- # shadow-cljs (140)
- # spacemacs (17)
- # spire (2)
- # tools-deps (23)
- # uix (11)
- # vim (5)
- # xtdb (3)
- # yada (3)
@tony.kay wow, the video's on reducers and hooks are what I've been wondering about for a long time. Since I like hooks a lot I wanted to ask "how about a use-query hook?" but didn't want to impose something that costs a lot of work on you. It's very useful to see how to go about extending fulcro with it. Very informative to see a couple of approaches! Thanks.
@bbss There's something like use-query
in this workspace
https://github.com/fulcrologic/fulcro/blob/ecdece70c05af355bdf383ad0b058a9eff95ea68/src/workspaces/com/fulcrologic/fulcro/cards/subscription_cards.cljs
might look into using workspaces as well.. Not sure if it'll be worth it. Do you use it?
used defcards a while back, I can see the use for it when you have a complicated UI that is composed in a lot of different ways. Always found the "shows environmental coupling" feature interesting.
Well if you're using fulcro, I'd definitely give workspaces a look, if only cause a major user of Fulcro, NuBank, made it https://github.com/nubank/workspaces
@bbss âď¸ uses Fulcro 2, Tony has a fork in his GH updated to F3
my pleasure đ
Is Fulcro Inspect currently broken by any chance? Chromium 83.0.4103.97 on Linux. The toolbar icon correctly states "Fulcro app detected!" but when I click the Fulcro Inspect tab it says "No app connected."
It does this to me pretty much randomly. Have you tried reloading? Closing/opening devtools? Closing that tab entirely to garbage collect it? Usually one of those fixes it for me.
Hmm I noticed I can right-click into the inspector window and say "inspect" to open a separate window with chrome dev tools. There I get "Error: no reader function for tag fulcro/tempid."
@U2APCNHCN I was running into that problem as well, and added a fix for it recently (https://github.com/fulcrologic/fulcro-inspect/commit/1ae196461d60b68d933a3225395c66a0d6a87081). you may want to try installing from the chrome store again to get an up to date version
When the Clojure REPL is starting I'm getting an error I don't understand: "Caused by: java.lang.Exception: Unable to resolve spec: :com.fulcrologic.rad.attributes/attribute". It seems to be saying that the guardrails defined function new-attribute
(in file com.fulcrologic.rad.attributes.cljc
), that returns an ::attribute
, can't find the >def
for ::attribute
, even although it is right there 4 lines above.
It comes from 'Syntax error macroexpanding' a defattr
. Which makes sense because the defattr
macro calls new-attribute
.
Hey friends, if I wanted to generate a completely static html export of my app. Is there a way to do this in Fulcro? I'm going for something along the lines of what's provided by Next.js or Gatsby.
@coetry Yes. If youâre doing it from js (i.e. node or within the browser) you can just use Reactâs server render code, which does exactly that. On the JVM (Clojure) you can also do that in Fulcro (which you cannot in others) because there is an implementation of the base factories. See Server Side rendering in docs. The down-side in JVM is if you use js components, they wonât render, and you have to write you UI in CLJC.
Hello! What is the right way to load data into the root of the DB? I have this component, loading a list of deals (having a pathom resolver from :deals
to a list of things):
(defsc HotDeals [this {:keys [deals]}]
{:query [{[:deals '_] (comp/get-query Deal)}]
:componentDidMount (fn [this] (df/load! this :deals this))}
...)
I think this is wrong as it will load {:deals [...]}
from Pathom and place it under :deals
in the DB so that I end up with {:deals {:deals [..]}}
, no? How to correct it? Thank you!Hm, perhaps I should have instead used (df/load! this :deals Deal)
which will send the correct query to Pathom and store it as expected....