This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-18
Channels
- # bangalore-clj (1)
- # beginners (36)
- # boot (119)
- # braid-chat (16)
- # cider (14)
- # cljs-dev (34)
- # cljsrn (7)
- # clojars (9)
- # clojure (91)
- # clojure-austin (1)
- # clojure-bangladesh (1)
- # clojure-dusseldorf (5)
- # clojure-israel (1)
- # clojure-russia (3)
- # clojure-spec (6)
- # clojure-uk (7)
- # clojurescript (11)
- # community-development (1)
- # core-async (5)
- # cursive (6)
- # datomic (11)
- # dirac (12)
- # funcool (24)
- # leiningen (5)
- # luminus (5)
- # off-topic (2)
- # om (69)
- # om-next (16)
- # overtone (4)
- # perun (19)
- # re-frame (23)
- # reagent (38)
- # specter (7)
- # uncomplicate (9)
- # yada (4)
Aha are there multiple instances of RoundDropDown
?
which key does :update-sidebar-dropdown live under?
My actual question is: what is your root query?
(defui RootView
static om/IQuery
(query
[_]
[ :update-form :header :report :session :selected-tab])
...)
the root contains the update-form and report, then update-form contains content and sidebar:
(defui UpdateForm
static om/IQuery
(query
[_]
{:update-form/sidebar (om/get-query sidebar/Sidebar)
:update-form/content (om/get-query FormContent)})
...)
(defui Sidebar
static om/IQuery
(query
[_]
[:selected-round
:loading
:section-responsible
{:roundDropdown (om/get-query RoundDropDown)
:countryDropdown (om/get-query CountryDropDown)
:sectionResponsibleDropdown (om/get-query SectionResponsibleDropDown)
:sectionResponsibleList (om/get-query SectionResponsibleList)}])
...)
RoundDropDown, CountryDropDown and SectionResponsibleDropDown need to use the :update-sidebar-dropdown
Your rootview is missing the query and all queries should compose to root so this cannot work correctly
@mitchelkuijpers thanks for your suggestion, I solved the problem by adding the query in the rootview to transact!, but I do not understand to update all the related components, why must the query be in the rootview?