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)
Hey all. I’m looking into hoplon lately and really like the concept and design of the library. It’s not very active and I encountered a few bugs trying to get it to work with the latest version on master. I want to contribute, but not sure what the best tasks are to pick up atm. Any help to get started on the development is appreciated.
@dmarjenburgh what issues have you run into?
Hoplon itself is very stable, though we have a few things we could improve
I created the TodoMVC app as a tryout. I don’t want to depend on jquery, so I was trying hoplon goog and vanilla (no providers). The hoplon.goog
attr providers gave throwing errors (in the latest repository version).
@dmarjenburgh ok, what issues are you encountering with goog
? I can help get those fixed
For example
(defmethod on! :hoplon.core/default
[elem event callback]
(let [event (obj/get events/EventType (name event))]
(events/listen elem event callback)))
This doesn’t work, with elements defined as (h/button {:click (fn [e] ...)})
, since “click” is not in the events/EventType
obj. This should probably just be:
(defmethod on! :hoplon.core/default
[elem event callback]
(events/listen elem (name event) callback))
I also got some others, though I’d have to try to reproduce those.
@dmarjenburgh what happens when you dont include :click
as part of the map?
ie. (h/button :click #(...))
Same error
The event type passed to events/listen will be nil
I can also help fix things by the way, or write some test cases
looks like we might need to uppercase the event name
click
is there for sure 🙂
Yeah, uppercasing works. You could uppercase it in the method: (obj/get events/EventType (.toUpperCase (name event)))
PR is welcome 🙂
Sure.