Fork me on GitHub
#fulcro
<
2020-01-06
>
mroerni10:01:48

Has anyone a clj-kondo config that deals with defmutation? Since action, remote, ... aren't fully qualified, I can't use the :lint-as option to lint as fn

thomas10:01:05

@borkdude ^^^^

borkdude10:01:41

@mroerni You can configure clj-kondo to ignore specific symbols inside a call to defmutation in the :unresolved-symbol linter

mroerni10:01:43

I did this, but then I get the error about the unresolved parameters. Is there a way to skip these?

(action [{:keys [state app]}]
  ...              ^    ^     unresolved

borkdude11:01:10

Maybe just ignore all symbols then in that macro

mroerni12:01:09

Do you mean adding state, app,... to the unresolved-symbol list? Or is there a way to specfiy "Ignore this, in the scope of that" ?

borkdude12:01:52

yes: > To exclude all symbols in calls to riemann.streams/streams write :exclude [(riemann.streams/streams)], without the vector.

mroerni12:01:36

Thanks a lot!

currentoor22:01:19

@mroerni how’s clj-kondo working for you?

currentoor22:01:51

i’ve been waiting for a good cross-platform clj/cljs/cljc linter, seems like this one might be it

mroerni07:01:58

@ to be honest I just installed it yesterday, so my experience is quite limited. (To get going was easy and you have direct highlighting in the IntelliJ Editor.) I am not satisfied with the linting of cursive, so I am trying something new.

currentoor18:01:25

ah i see, thanks

hadilsabbagh1816:01:22

I am using the fulcro-master-template as a starting point for my SPA, but Fulcro Inspect (which I have installed) returns no app connected. Any suggestions?

mroerni11:01:53

I had the problem that I had to allow chrome to use 3rd party cookies. Don't know if this is still a problem.

tony.kay17:01:32

@hadilsabbagh18 I’ve seen that once…I have no idea why it was happening. I think I fixed it by reinstalling the inspect plugin and restarting chrome.

hadilsabbagh1817:01:47

Ok, thanks @tony.kay

jarvinenemil19:01:00

hmm, seems like it's not functional. got: java.lang.Exception: Not supported: class app.ui.root$eval41178$query_STAR___41179 when going to localhost:3000

hadilsabbagh1821:01:23

I am using dynamic routing as per chapter 14 of book.fulcologic.comm I am routing successfully but I don't know how to get a blank page when I route away from my old page...any suggestions?