This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-13
Channels
- # announcements (1)
- # bangalore-clj (1)
- # beginners (47)
- # boot (16)
- # calva (33)
- # cider (14)
- # clj-kondo (3)
- # clojure (46)
- # clojure-india (1)
- # clojure-italy (6)
- # clojure-nl (4)
- # clojure-uk (5)
- # clojurescript (10)
- # dirac (8)
- # emacs (1)
- # fulcro (1)
- # leiningen (14)
- # lumo (1)
- # off-topic (178)
- # pathom (9)
- # planck (17)
- # quil (2)
- # reagent (5)
- # reitit (6)
- # shadow-cljs (55)
- # tools-deps (3)
Is there any way this visualization is coming to fulcro inspect?
it is there already :)
Oh.. It could be, that I never restarted Chrome... Handy, that my laptop crashed an hour ago.
yeah, also Chrome doesn't update the extensions immediately, so it might take days until it does the update, but you can manually ask for it to get the latest version
Hm. But now I get an exception, when I try to load the index. 😞
Mon Apr 15 20:12:10 CEST 2019 [worker-2] ERROR - POST /api
java.lang.RuntimeException: java.lang.Exception: Not supported: class com.wsscode.pathom.trace$fn__15355
at com.cognitect.transit.impl.WriterFactory$1.write(WriterFactory.java:65)
at cognitect.transit$write.invokeStatic(transit.clj:167)
at cognitect.transit$write.invoke(transit.clj:164)
...
the issue is with Transit in this case, because there is some things in the index that transit can't encode by default, in this case a fn
, there are 2 things you can do to go around:
1. be more specific about the output index to avoid sending fns, since you write the resolver for the index explorer you can control it there
2. configure the default transit handler so it doesn't break on not supported things
I like option 2 better because it goes around all encoding issues that might happen
to do 2
you can follow the example from Fulcro Inspect itself: https://github.com/fulcrologic/fulcro-inspect/blob/303d5fd99685b34bfb122a59c532b6a5781654bc/src/client/fulcro/inspect/remote/transit.cljs#L19
Awesome tip thnx! :thumbsup: