fulcro

Book: http://book.fulcrologic.com, Community Resources: https://fulcro-community.github.io/, RAD book at http://book.fulcrologic.com/RAD.html
Mr. Savy 2020-10-04T00:00:13.118500Z

I downloaded the fulcro template to play around with, but I'm getting an net::ERR_CONNECTION_REFUSED whenever I start the server. Has anyone encountered this error before?

Adrian Smith 2020-10-04T17:04:38.120400Z

Can you show the errors?

Mr. Savy 2020-10-04T17:27:51.120600Z

original error is gone, no error for the persistent one, it just isn't reflecting changes in the dom.

Mr. Savy 2020-10-04T18:09:42.121Z

uuugggggghhhhhhhhhhhhhhh surprise, surprise, I'm just an idiot. It works from a root component, but not one I make a factory of. I don't understand why the dom only works from root, but at least I got this crap working again. Now I have to relearn how to appropriately build and pass data between components such that it respects mutations. oh well

Jakub HolĂ˝ 2020-10-04T18:12:53.121200Z

What do you mean by mutations here? Fulcro's defmutation? You mean that transact!-Ing a mutation only works inside the root component?!

Mr. Savy 2020-10-04T18:21:38.121800Z

yes. I'm not sure why unless that's how they're meant to work or I'm just doing something wrong.

Mr. Savy 2020-10-04T21:06:54.122Z

ok I finally got it working searching by id. For some reason update wasn't finding the data in state in the mutation so I had to reform the data structure to include an associated id. taking breaks isn't enough to keep my brain from turning to mush every time I come back lol.

Mr. Savy 2020-10-04T00:03:59.118600Z

the error points to some code from shadow-cljs so I'll see what they know

cjmurphy 2020-10-04T02:25:30.118800Z

RAD (probably still) doesn't support connection strings such as datomic:<dev://localhost:4334/my-example-db> You will have to have your own version of the Database adaptor that calls back to the real Datomic database adaptor. Have your own config file attributes that your own code interprets. Or that's what I did.

cjmurphy 2020-10-04T02:27:20.119Z

com.fulcrologic.rad.database-adapters.datomic.config-&gt;url is what you are going to need to replace.

Mr. Savy 2020-10-04T04:52:00.119200Z

redownloading the template fixed the issue but still having problems reflecting mutations in the dom

2020-10-04T05:23:59.119400Z

Ah yes, the release notes confused me a bit but element tab is also working for chrome plugin, should have checked, sorry for the noise!

2020-10-04T05:24:32.119600Z

tempids show up as "UNSUPPORTED VALUE". Index explorer I can click load index and the network tab shows the req/res. But nothing happens.

2020-10-04T05:25:26.120Z

In Chrome devtools the index explorer does work!