Fork me on GitHub
#fulcro
<
2019-06-04
>
souenzzo18:06:45

I'm trying to do a mutation, with (returning ast state MyComponent) But I get No protocol method IMap.-dissoc defined for type cljs.core/PersistentVector: [::comp ::comp] at fulcro.client.mutations/merge! Where my component use :ident (fn [] [::comp ::comp])

tony.kay19:06:38

@souenzzo not sure why merge would be seeing a vector where it expects a map…but that’s what’s happening

tony.kay19:06:02

what did your server return?

tony.kay19:06:02

I suspect that the return value of your server side mutation was a vector instead of a map?

souenzzo19:06:49

Query/response looks ok

tony.kay19:06:19

what about nested things? merge! is used by every part of the system, so while it is a crappy error message, I suspect it is a problem in your data 😕

souenzzo20:06:02

the query is nested

souenzzo20:06:40

everything has a ident

tony.kay20:06:38

but does any of the nested response look wrong?

tony.kay20:06:06

The whole process is recursive