Fork me on GitHub
#reagent
<
2019-08-30
>
bfleischer13:08:46

Hey everyone, maybe someone knows 🙂. I’m trying to parse a list of :hiccups with some ant/components, and trying to differentiate the ant/components with each other. But these have the type NativeWrapper, which is not useful at all. Any help is appreciated

jahson16:08:21

at least you can dig deeper with this

andrea.crotti16:08:10

Yes I saw that too, but I could not see a way to extract the tag from the object

try-not-to-cry 4
bfleischer16:08:10

Thanks, will look at it 🙂

andrea.crotti16:08:10

Would be nice if you could just do [:ant/something like we do for normal tags

andrea.crotti16:08:41

But I guess that would mean that reagent needs to know how to deal with that

andrea.crotti17:08:11

so in theory just .-tag, it doesn't seem to work though in this case

andrea.crotti17:08:43

> (deftype Hello [f s third])
> (.-f (->Hello "a" "b" "c"))
"a"

andrea.crotti17:08:50

that works also in cljs though, so it's a start

bfleischer17:08:45

Thanks Andrea, maybe it’s an issue with Antizer