This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-05-07
Channels
- # announcements (16)
- # asami (15)
- # babashka (12)
- # beginners (38)
- # calva (32)
- # cider (1)
- # clj-commons (9)
- # clj-otel (4)
- # clojure (57)
- # clojure-europe (43)
- # clojure-korea (1)
- # clojure-nl (1)
- # clojure-norway (13)
- # clojure-uk (4)
- # clojuredesign-podcast (9)
- # clojurescript (10)
- # cursive (5)
- # datahike (9)
- # deps-new (2)
- # events (1)
- # fulcro (8)
- # hyperfiddle (7)
- # kaocha (1)
- # lsp (2)
- # malli (3)
- # nrepl (2)
- # off-topic (19)
- # releases (3)
- # ring (10)
- # shadow-cljs (4)
- # sql (14)
- # xtdb (57)
- # yamlscript (2)
there's a few typo in the statechart source/doc: sfn
-> script-fn
and sfn
-> exit-fn
I wanted to make a PR but my editor has a radically different POV on how to indent that code and it makes too many unrelated changes
When calling fop/invoke-remote
, what constitutes an error-event
?
whatever you’ve configured Fulcro to consider an error. By default a non-200 status code from the server I think
I always beef this up a bit because I don’t generally like throwing as a way to indicate “known problems with a request”…I’d rather return something more constructive, but this also sometimes involves touching remote middleware on the client. For example, I install response middleware that can look for special signals that will cause a notification toast to pop up.
ok, I ended up adding :remote-error? in my fulcro-app:
:remote-error?
(fn [result]
(or
(app/default-remote-error? result)
(some-> result :body vals first (contains? :com.wsscode.pathom.core/errors))
(:com.wsscode.pathom3.connect.runner/attribute-errors (:body result))))
where the second expression in the or
is the most common case of error for me, the errors
map is made of a message and a data key, extracted from clojure exception or explicetely returned by the mutation