Fork me on GitHub
#reagent
<
2016-01-14
>
trancehime04:01:27

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...

gadfly36104:01:29

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)

trancehime04:01:03

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

trancehime04:01:12

It only appears if I run it in some context path /context

trancehime04:01:13

That's what confuses me .

gadfly36104:01:30

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).

gadfly36104:01:25

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 ]

trancehime04:01:15

...Well thanks,

trancehime04:01:26

I was able to fix the problem.

trancehime04:01:01

Now I just have to adjust my routes accordingly based on this, thank you