This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-02
Channels
- # announcements (5)
- # babashka (1)
- # beginners (140)
- # braveandtrue (1)
- # calva (28)
- # chlorine-clover (39)
- # cider (8)
- # clj-kondo (1)
- # cljfx (15)
- # cljs-dev (2)
- # clojure (41)
- # clojure-europe (39)
- # clojure-france (3)
- # clojure-germany (5)
- # clojurescript (28)
- # clr (1)
- # css (1)
- # cursive (3)
- # data-science (19)
- # fulcro (14)
- # graalvm (3)
- # hoplon (18)
- # jobs (2)
- # malli (7)
- # meander (2)
- # off-topic (10)
- # pathom (6)
- # re-frame (3)
- # reagent (2)
- # remote-jobs (1)
- # reveal (1)
- # shadow-cljs (5)
Is there a simple way to cause a :typeahead
to refresh the :selections
atom every time a key is pressed? I don't see the behaviour described in the docs (https://github.com/reagent-project/reagent-forms#selection-list-from-ajax) of the list popping down when the atom is set... but it's also very likely I'm misreading those docs. I don't see anything in the source that would do that, either.
From experimenting with this, I can update an atom externally (due to a button press or something, ajax or otherwise) but I don't see an obvious way to hook :on-change
to manually set the atom... unless the expectation is simply to make the ajax call in the :data-source
fn?
https://github.com/reagent-project/reagent-forms/blob/master/src/reagent_forms/core.cljs#L322
(Additionally, I'd be quite happy to be on the receiving end of advice regarding reagent-forms
in general and whether or not people still use it in production. The webapp I'm building is internal and doesn't require a lot of fancy JavaScript, so I don't need re-frame or anything like that. I'm really liking how small and simple Reagent is so far.