Fork me on GitHub
#fulcro
<
2022-05-27
>
Benjamin C03:05:44

Hmm, is form/delete! supposed to delete all references to the entity it deletes? It seems to do so on the cljs side, but on the server, only the entity is getting deleted. Pretty sure I'm doing something a little wonky.

Benjamin C04:05:52

Okay, after some digging, it looks like I'll need to handle this in the delete middleware. with the XTDB adapter, at least. It doesn't appear to try to delete references.

rukor21:05:16

I think datomic has something like db/isComponent which enables something similar IIRC, but am not sure of the equivalent in xtdb land.

tony.kay14:05:06

Delete middleware. It's your responsibility or the databases. Datomic does clean up dangling refs no matter what

sheluchin14:05:12

I've got two queries:

`[::foo/id
  ({::foo/things ~(comp/get-query ChildComp)}
   {:param :x})]

`[::foo/id
  ({::foo/things [:thing/x
                  :thing/y]}
   {:param :x})]
The second is just a literal representation of the first. I've compared both outputs and they are identical. But the first one doesn't work 😕 can someone explain why?

Mateusz Mazurczak20:05:03

Hi, I would like to create a business using fulcro (with clojure and datomic). I'm looking for someone that's also interested as it's easier to work together. I have few ideas but if you have your own I'm open. If you are interested please DM me so we can talk.