fulcro

Book: http://book.fulcrologic.com, Community Resources: https://fulcro-community.github.io/, RAD book at http://book.fulcrologic.com/RAD.html
tony.kay 2021-06-02T00:38:19.114600Z

In principle that is fine, but in practice I do not think I fully fleshed out recursive support. The resolver generation should be ok with it for Datomic (I think)...would be helpful for you to describe what "not ending well" means.

Michael Mossinsohn 2021-06-02T08:35:03.115Z

Thank you for your reply! and for the Fulcro ecosystem! 🙂 I think I get an infinite compiler loop. Since it's mentioned in the developers guide (inside the code for "Example 12. https://book.fulcrologic.com/#RecursiveDemo1") that "calling get query on yourself would lead to infinite compiler recursion", I suspected that circular recursion is not supported. (which is why I did't start by providing lots of details). Since it should be supported, It's probably me... 🙂 I will simplify my code and figure out if I can get my code to work or fail even with a more trivial case. If I can't get it to work I'll ask again for some guidance (and provide all the relevant details). Thanks! Michael

Jakub Holý 2021-06-02T09:47:16.115300Z

Thanks a lot! Deps: I will just remove the alias, it can perhaps cause problems if it is not defined on your machine (I have it in my global deps.edn). The :serve deps are not required by shadow in my experience.

Jakub Holý 2021-06-02T09:48:43.115500Z

Thank you! So you main challenge is understanding what Pathom resolvers to write and how to map those to an underlying SQL DB, correct?

1👍
tony.kay 2021-06-02T13:23:00.115700Z

You of course cannot call get-query (or any function) recursively without a termination condition...but where are you doing that? You used recursive query notation in your code sample

tony.kay 2021-06-02T13:25:57.115900Z

Forms won't auto-handle it, but you have to do a subform join on a ref, which means generating a subform class. You cannot use the form itself as its own subform, but you can write another class for that purpose.

sifou biri 2021-06-02T21:12:32.118200Z

When trying the fulcro-demo in fulcro-rad-kvstore, the db shows empty in fulcro inspect tab. Any ideas why, or how to debug it?

Jakub Holý 2021-06-02T21:50:45.118300Z

Make sure you have latest inspect AND latest Fulcro (even newer than what the demo pulls in)