This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-08
Channels
- # aleph (1)
- # architecture (4)
- # aws (5)
- # beginners (105)
- # boot (1)
- # boot-dev (72)
- # cider (5)
- # clara (15)
- # cljs-dev (51)
- # cljsrn (5)
- # clojure (155)
- # clojure-austin (3)
- # clojure-dusseldorf (2)
- # clojure-finland (1)
- # clojure-greece (37)
- # clojure-italy (17)
- # clojure-nl (1)
- # clojure-russia (6)
- # clojure-spec (23)
- # clojure-uk (6)
- # clojurescript (7)
- # community-development (1)
- # css (10)
- # cursive (15)
- # datomic (45)
- # defnpodcast (1)
- # duct (97)
- # emacs (5)
- # fulcro (46)
- # hoplon (8)
- # instaparse (25)
- # keechma (11)
- # leiningen (16)
- # off-topic (2)
- # onyx (9)
- # planck (2)
- # re-frame (5)
- # reagent (3)
- # reitit (2)
- # ring (6)
- # shadow-cljs (35)
- # spacemacs (9)
- # specter (9)
- # sql (18)
- # uncomplicate (4)
thanks. I'll look at it. The instructions on websockets in dev guide assume easy server, I think...and the components that are in the namespace are built to hook into it...and it is easy server that already has a pre-built handler component. The websocket demo is a roll-your-own server, and that is less well documented, I guess...other than there is that complete working demo with source.
Just wanted to say thanks so much to @tony.kay for all the great work on Fulcro. The video guide is awesome and really helped me to grok a lot of the om concepts.
@funkrider Thanks. I appreciate the feedback.
Clojure namespace management is kinda fiddly, so what I have so far isn't perfect, but it's basically a project that has client and server auto-hot-reload, with errors from either going to the figwheel heads up.
I hope to integrate these work flow improvements into the lein template, at least as an optional add-in...lots to do 🙂
I have a problem with the router. I am using a string identifier for the ui ident. But this is unable to match because fulcro.client.routing/set-ident-route-params
is changing the identifier to a keyword if it's not an integer. Is there a way around this?
I've tried to normalize it by converting the ID to a keyword, but that's not working out
Alright fair enough, I'll fiddle a bit with it see if I can get an idea for this. And insert an issue later. Is that ok?
Yeah, it's fine. Best idea I've got is to make sure those objects with the string IDs get converted to keyword IDs before you send them from the server.
Another idea would be to somehow indicate a coercion function for a given parameter.
Yeah I tried to return the ID's as keywords from the server. But the normalize function seems to convert that to strings in the normalize table (will check this to be sure)
we could add a multimethod for parameter coercion. The default could just be what it is, could dispatch on the parameter keyword...would make the whole thing extensible
Ok I see it now, that key seems to be dependent on how you specify it in the load function
The default processing is unchanged, but if you (defmethod coerce-param :param/Y [k v] v)
for example, you could just make a string pass through for :param/Y
there were existing tests on that functionality, and they all still pass, so I didn’t break anything.
hey does anybody have a recommendation for de-bouncing client side events like key-presses?
@funkrider: I use gfun/debounce
since seeing it being used in Fulcro Inspect.