This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-14
Channels
- # admin-announcements (17)
- # announcements (4)
- # beginners (47)
- # boot (347)
- # braid-chat (55)
- # bristol-clojurians (5)
- # cider (5)
- # cljs-dev (1)
- # clojure (111)
- # clojure-chicago (1)
- # clojure-russia (73)
- # clojure-ukraine (2)
- # clojurescript (162)
- # code-reviews (1)
- # community-development (199)
- # core-matrix (2)
- # cursive (29)
- # datomic (40)
- # devcards (13)
- # dirac (37)
- # docs (12)
- # editors-rus (2)
- # emacs (11)
- # events (26)
- # hoplon (2)
- # jobs (8)
- # ldnclj (31)
- # lein-figwheel (2)
- # off-topic (7)
- # om (59)
- # other-lisps (1)
- # portland-or (1)
- # proton (50)
- # re-frame (5)
- # reagent (13)
- # ring-swagger (5)
- # spacemacs (3)
- # yada (3)
Uncaught Error: Assert failed: Invalid Hiccup form: [nil] (in helper_module.core.current_page) (valid-tag? tag)
I don't understand how this can be reproduced...
Sounds like you have a component that has something like [nil "foobar"]
instead of [:div "foobar"]
(where :div can be any valid hiccup tag or name of a reagent component)
Well, funnily enough, if I run my application in a root context I don't get this problem and the application renders with no errors
It only appears if I run it in some context path /context
That's what confuses me .
I am guessing you have a function that picks which reagent component to render based on that path. But sounds like the reagent component is trying to be run before it knows what it is. (Sorry if that doesnt make sense).
If you do have a function that picks a reagent component based on the path, try adding a default scenario that is a valid reagent component, such as an empty div... [:div ]
...Well thanks,
I was able to fix the problem.
Here is an example: https://github.com/Day8/re-frame-template/blob/master/src/leiningen/new/re_frame/src/cljs/views_routes.cljs#L27
Now I just have to adjust my routes accordingly based on this, thank you