This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-27
Channels
- # announcements (1)
- # aws (10)
- # babashka (53)
- # calva (133)
- # clj-kondo (46)
- # cljdoc (6)
- # cljs-dev (33)
- # clojure (105)
- # clojure-boston (1)
- # clojure-europe (11)
- # clojure-nl (4)
- # clojure-poland (1)
- # clojure-switzerland (6)
- # clojure-uk (13)
- # clojurescript (106)
- # cursive (1)
- # datascript (2)
- # emacs (13)
- # events (1)
- # figwheel-main (4)
- # fulcro (17)
- # graphql (8)
- # heroku (2)
- # honeysql (8)
- # lsp (76)
- # luminus (30)
- # malli (12)
- # meander (23)
- # music (1)
- # nextjournal (83)
- # off-topic (6)
- # pathom (3)
- # polylith (19)
- # re-frame (8)
- # reagent (2)
- # reveal (3)
- # shadow-cljs (54)
- # sql (9)
- # testing (11)
- # tools-deps (15)
- # xtdb (14)
I randomly get this error occasionally and I can’t seem to figure out why. Unfortunately it seems to resolve it self and then pop back up:
You’re dereferencing something during render that is sometimes a function, sometimes not…where do you use @
or deref? Are you trying to hold callbacks in atoms or something like that?
(defsc TabUnion [_ {:keys [which-tab] :as props}]
{:query (fn [] (map-vals get-query which-tab->tabui))
:ident (fn [] (generate-ident props))
:initial-state (fn [_] (initial-state Blank {}))}
(let [active-tab (@(which-tab->tabui which-tab) props)]
(dom/div {:id "tabunion_content"
:className (str (name which-tab) "-tab")}
active-tab)))
guessing that on an early frame it hasn’t initizlized fully or something and returns something you do not expect
rad-routing/route-to!
is not a replacement for change-route-relative!
when you have nested routers, correct?