This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-17
Channels
- # beginners (26)
- # calva (7)
- # cider (6)
- # cljs-dev (7)
- # clojure (86)
- # clojure-europe (1)
- # clojure-finland (1)
- # clojure-spec (3)
- # clojure-uk (11)
- # clojurescript (18)
- # cursive (6)
- # data-science (1)
- # emacs (13)
- # fulcro (34)
- # juxt (8)
- # nrepl (6)
- # off-topic (11)
- # pathom (25)
- # re-frame (13)
- # reitit (11)
- # shadow-cljs (4)
- # spacemacs (3)
@wilkerlucio I just noticed that some data I am displaying through shared props isn’t rendering while rewinding the history in Fulcro Inspect. Any idea why this could be?
humm, nothing strait, but can make sense, the story just rewinds the state (its literally getting your root factory and running against a previous state map), so thats probably a bug that its not considering shared
@wilkerlucio what is the use of this checkbox? https://puu.sh/CNzWN/5ad85168fb.png . From what I gather it seems to deactivate history rewind, but… not sure why
it deactivate the preview
when you scroll you just seen the preview
also, in my transaction history I have a lot of empty vectors, e.g. https://puu.sh/CNzXE/88778eaac2.png . Any idea why?
to actually return to that version you need to click on that button right before the snapshot button
not sure, check if you are not calling some empty transactions by accident
I hanve't saw those before
if you get to try to implement the haskell version for the pathom processing, this is the heart of it 😉 https://github.com/wilkerlucio/pathom/blob/4aa7180c7420ab67d251da90bf92c561c378322c/src/com/wsscode/pathom/connect.cljc#L477-L517
We also have these empty vector transactions! They seem to show up between a load that is issued and the subsequent merge. If you happen to find out what the problem was for you, I’m very curious to know!
@U5MU0K0S0 oh, I'm glad I'm not alone! I'll let you know if I find the answer
weird
I don’t think I’m doing empty transactions though. I’ll try to create a new project and see if it happens. (this project was created using the lein template)
I am certainly not triggering any transaction manually between that load and the merge
yeah, seems strange
did you tested in a blank app?
@wilkerlucio hmm ok, it doesn’t happen in the blank app (`lein new fulcro foo`), so I must have fucked it up somehow 😅
I have an auth response middleware which looks like this:
(defn auth-response-middleware [response]
(if (= 401 (:status-code response))
(do
(redirect! "/sign-in")
(assoc response :transaction [] :body {}))
((net/wrap-fulcro-response) response)))
Tony told me to set :transaction
to []
there to avoid Fulcro processing the response (if I understood what we said correctly)
We also have these empty vector transactions! They seem to show up between a load that is issued and the subsequent merge. If you happen to find out what the problem was for you, I’m very curious to know!