Closed misuba closed 1 year ago
I don't understand why you use hiccup as it doesn't understand ::h/live
definitions. I wouldn't expect that to work.
Also you can use [::h/when
inside h/html
macros or you need to use h/html
again inside the when blocks.
For an example of tab component, you could look at https://github.com/tatut/xtdb-inspector/blob/main/src/xtdb_inspector/ui/tabs.clj
This feels faintly like I haven't sussed out one of the wrapping functions that's needed; I think I have them all, but let's find out. Here's the calling view code:
The
hc
namespace is hiccup, andh
is ripley.html. I was getting a different error on top of this one withh/html
(at line 3 above, I mean), that using hiccup's at the top of this function got rid of... if that makes sense.