This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-17
Channels
- # announcements (4)
- # beginners (82)
- # boot (1)
- # calva (26)
- # cider (13)
- # clj-kondo (41)
- # cljs-dev (25)
- # cljsrn (7)
- # clojure (82)
- # clojure-berlin (1)
- # clojure-brasil (1)
- # clojure-dev (13)
- # clojure-europe (11)
- # clojure-italy (27)
- # clojure-nl (8)
- # clojure-russia (6)
- # clojure-spec (32)
- # clojure-uk (15)
- # clojurescript (61)
- # core-async (1)
- # cursive (9)
- # data-science (1)
- # datomic (18)
- # duct (1)
- # emacs (2)
- # events (7)
- # fulcro (13)
- # graalvm (5)
- # immutant (1)
- # jobs-discuss (63)
- # leiningen (3)
- # off-topic (48)
- # om (3)
- # pathom (13)
- # planck (20)
- # prelude (3)
- # re-frame (55)
- # reagent (13)
- # reitit (5)
- # rewrite-clj (12)
- # shadow-cljs (67)
- # spacemacs (14)
- # sql (5)
- # tools-deps (4)
- # vim (23)
- # yada (2)
I have successfully made the header-bar work via Navigation.navigate()
. However, it is still established in the router. How can I make my header-bar change as a data internal to a navigator screen changes (e.g. creating something like Android fragments, where the fragment but not the Navigator screen changes, and the header menu should change too). Any ideas how to make the header bar dynamic?
Well, I've tried every combination of subscribe
, as-element
, as-component
I can think of and am failing to find a way to make the navigation bar dynamically change with non-screen-changing events in the view
It appears that even when you provide a function to your navigationOptions, it is still evaluated only once and so is unresponsive to state changes
@worlds-endless So based on some of the code you pasted above, it's possible that you're running into the issue described here (https://github.com/reagent-project/reagent/blob/master/doc/CreatingReagentComponents.md#form-2--a-function-returning-a-function). See the subheader "Rookie Mistake" (I don't mean to call you a Rookie; I'm just pointing to the documentation) about having to re-declare the parameters within the inner render function. To address your code directly, where is the value for loaded
coming from?
It's been a long time since I read those -- thanks for the reminder. Very useful!
It did. Thanks!