This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-21
Channels
- # announcements (10)
- # aws (38)
- # beginners (220)
- # calva (2)
- # cider (26)
- # clj-kondo (194)
- # cljs-dev (4)
- # clojure (190)
- # clojure-dev (7)
- # clojure-europe (3)
- # clojure-italy (6)
- # clojure-nl (4)
- # clojure-uk (8)
- # clojured (1)
- # clojurescript (29)
- # code-reviews (31)
- # community-development (9)
- # core-async (24)
- # cursive (38)
- # data-science (51)
- # datomic (52)
- # dirac (2)
- # emacs (3)
- # events (1)
- # figwheel-main (4)
- # fulcro (49)
- # graphql (13)
- # heroku (1)
- # hoplon (19)
- # immutant (3)
- # leiningen (1)
- # nrepl (59)
- # off-topic (12)
- # onyx (2)
- # pathom (51)
- # reitit (15)
- # shadow-cljs (88)
- # spacemacs (6)
- # sql (3)
- # tools-deps (107)
- # xtdb (11)
@thheller Welcome. Wilker actually wrote most of Inspect…I was just trying to speed it up a bit when the data gets large 🙂 Or did you mean optimization?
just interesting to see. what I'm building is somewhat closer to REBL and datafy/nav since one thing I don't want is actually printing and transferring the entire object (eg. repl result) so I'm building a "protocol" that allows inspecting objects remotely and incrementally. hope to finish that soon. building the UI is the next step and using fulcro-inspect and/or re-frame-10x as the inspiration for possible "data viewers"
This sounds nice, is this going to be a complement to shadow-cljs
in any way or meant to be standalone?
well the first version is going to be coupled to shadow-cljs ... just as a proof of concept basically
but I want most of the stuff generic enough so that it might be useful for other tools too
Cool, looking forward to giving it a go 🙂
I have been working on something like this for over 2 years now and thrown many versions away
turns out getting the remote stuff right is really hard since suddenly everything is async 😛
I see, no worries. I do think, these little long term projects have a way of spawning many ideas anyhow
Btw, are you working on it on github?
Mm hmm, got it 🙂
curious to know how I can handle a route that has query parameters "places?r=1" in fulcro. the route system specifically the route segment in the defsc-route-target does not seem to recognize them ( but not sure ) so if I have a route segment like
:route-segment (fn [] ["places"])
how would i let that route-segment take params like "places?r=1"
@dansudol you parse the URI…a route segment like ["places" :r]
is the intended usage…you just have to make sure your URI parsing code knows to find/put it there.
got it @tony.kay i try that thanks
what is the proper way to add a fulcro remote dynamically? is it enough to just swap it into the runtime-atom?
@thheller the times I needed something like that, I made the remote itself to be dynamic, not sure if its possible to add during runtime, and if you do, tools like Fulcro Inspect will probably not get it
hmm yeah adding it dynamically kinda works but the websocket isn't speaking EQL and fulcro complains about my remote action
(defmutation select-runtime [{:keys [runtime-id] :as params}]
(action [env]
(js/console.log "select-runtime" params))
(tool-ws [env]
{:op :request-tap-history :runtime-id runtime-id}))
my intent was to use defmutation
and let the tool-ws
(the remote) transform it to the websocket message that should be sent
> ERROR [com.fulcrologic.fulcro.algorithms.tx-processing:424] - Remote dispatch for :tool-ws returned an invalid value. {:op :request-tap-history, :runtime-id 79}
@thheller In F3 you should be able to just add it. In terms of your remote return value: that has to be a boolean, an env (with optionally updated AST) or an AST
The internals for using mutations are all EQL (otherwise things like merge cannot possibly work)
So, your custom remote would receive a send node that has the AST in it, and you’d then transform that to your desired network comm
Hey all, I got approved for GitHub’s Sponsor beta program, where they do matching funds! If anyone is currently contributing on Patreon or would like to get 2-for-1 mileage out of their contribution dollars in helping me continue to develop Fulcro please head over to https://github.com/sponsors/awkay and sign up.
I can add more tiers if you are interested in contributing but none of those levels match what you’re comfortable with.
your support is appreciated but really not necessary, your fulcro work already does so much for me. I want to sponsor you back but that seems kinda redundant and we'd probably just exchange github fees 😛
Heh. We didn’t really, but I use/recommend shadow-cljs through my consulting work all the time, so I look at it as a tool I use professionally. I also know that none of my clients do much in the way of donations, so think of it as “pass-through” 🙂
@thheller If you support each other through Github and your contribution is matched by Github you will both gain more funds... Except when the fees are ≥50% of your support + githubs match.
@U4VT24ZM3 yes we could but in my book that comes dangerously close to abuse/fraud. I'd much rather not abuse the system and github matching isn't gonna last forever anyways
Of course. I think there will be regulations in place, as this loophole is rather obvious.
quick question: is anyone here using REBL? the cognitect REPL UI thing? if so: do you use tap>
at all?