Fork me on GitHub
#om
<
2016-08-14
>
solussd00:08:51

I’m trying to use union queries for routing, but in the most simple case, e.g., as presented here: https://github.com/anmonteiro/anmonteiro.github.io/blob/master/assets/cljs/om_next_routing/union.cljs, I’m seeing the error: "Union components must implement Ident”. I’m using normalized data and stuffing the union under the route/data key. Could someone point me in the right direction?

solussd00:08:03

implementing ident for the union’d queries does not see to fix it

anmonteiro22:08:09

@solussd: it’s the union query that needs to implement Ident, the one which has a map as the query

anmonteiro22:08:35

see the official union queries tutorial for an example: https://github.com/omcljs/om/wiki/Queries-With-Unions