This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-05
Channels
- # announcements (3)
- # babashka (135)
- # beginners (82)
- # calva (55)
- # chlorine-clover (23)
- # cider (13)
- # clara (1)
- # clj-kondo (39)
- # cljs-dev (1)
- # cljsrn (2)
- # clojure (96)
- # clojure-france (3)
- # clojure-uk (24)
- # clojuredesign-podcast (1)
- # clojurescript (56)
- # conjure (73)
- # core-typed (1)
- # cursive (1)
- # datomic (10)
- # fulcro (57)
- # joker (4)
- # juxt (1)
- # malli (20)
- # meander (2)
- # off-topic (54)
- # re-frame (4)
- # reagent (3)
- # shadow-cljs (11)
- # spacemacs (6)
- # sql (26)
- # tools-deps (7)
I’ve tried to fun df/load!
in cljs REPL and it doesn’t do anything, but if I stick the same code on a button, then the transaction runs…. what could be the problem there?
what are you passing as the first parameter in the repl?
make sure that first argument is not nil
my APP
and you’ve made sure that value is not nil?
`
(df/load! app.application/SPA....
given the template projectdf/load!
calls comp/transact!
do you have the inspect extension installed?
are you seeing anything in the transactions tab in there?
when you use the repl
no transactions in inspect if I use repl
can you share the full code snippet of what your pasting in the repl?
(df/load! app.application/SPA :user/info UserInfo)
in repl doesn’t trigger any tx or error in consolewhat about debug logs? have you tried enabling those?
debug logs where?
JS console
what happens when you `
(comp/any->app app.application/SPA)
there seem to be some sort of logs here, in the style of:
2timbre_support.cljs:80 DEBUG [com.fulcrologic.fulcro.algorithms.tx-processing:?] - Scheduling a render
I get a massive map
do you have a custom
:global-eql-transform
set?no..
(df/load! app.application/SPA :main-user UserInfo)
=> #uuid"20e5a6a5-4bc2-4efb-b12f-1d50ad0ccced"
hmm interesting so it is getting queued
yeah but I cannot see any tx or anything in the inspect
have you tried reloading the page? maybe the request queue is hosed?
doesn’t seem to change anything
very strange i’ve never seen this happen…
what about other queries?
i’ll try something similar in my app
The thing is that if I put the same line on a button it works
right
i’m starting up my app, then i’ll try it
what about the query tab in the inspector, if you use that does it work?
yes that works
(let [app @app-atom]
(df/load! app :ucv/config nil))
that works for me in the repli can’t think of what else could be wrong
@U0CKQ19AQ will probably have a better idea
seems like shutting down non-main builds and restarting REPL helped
ah i see
looks like I have problems with multiple shadow-cljs builds, perhaps conflicting config
thanks for your help
no worries
glad you figured it out
what’s the best way to prevent form-state part of query from being sent to the remote? Do you specify :without #{:com.fulcrologic.fulcro.algorithms.form-state/config}
at each load or do you have something more general?
we use the :global-eql-transform
@U66G3SGP5 here’s our implementation
this elides a bunch of stuff by default (including anything with ui
in the namespace
and also adds in the query for tracing
Thanks for that. I tried to put it into my own code but am getting a bewildering 'Use of undeclared Var' message. Do you mind giving us the imports as well because I think that will help.
I fixed it with another file almost exactly the same, copy and pasted and manually edited. No idea. Bad invisible character??
@U0D5RN0S1 no idea, but this question comes up so often, maybe this snippet with requires should be put in book
@U0CKQ19AQ want me to do that?
yeah then we can link to that if someone asks, instead of making a snippet every time