fulcro

Book: http://book.fulcrologic.com, Community Resources: https://fulcro-community.github.io/, RAD book at http://book.fulcrologic.com/RAD.html
Björn Ebbinghaus 2020-12-03T00:44:02.045200Z

@tony.kay I made a pull request to fix this.

tony.kay 2020-12-03T00:55:27.045400Z

good catch, thanks for the patch!

tony.kay 2020-12-03T00:59:40.045900Z

Fulcro 3.4.6 released with the patch ^^^ @mroerni

👍 2
Jakub Holý 2020-12-03T14:29:15.048100Z

@tony.kay I guess this is outdated > 3.5. Basic UI Components > Fulcro supplies a defsc macro to build React components. This macro emits class-based React components (hook support is coming soon, but does not work with defsc).  since hooks are already available?

tony.kay 2020-12-03T14:32:21.048300Z

yep

👍 2
tony.kay 2020-12-03T14:32:25.048500Z

hooks are avail and working

tony.kay 2020-12-03T14:32:32.048700Z

have been for a while

Jakub Holý 2020-12-03T19:13:30.050300Z

I see https://cljdoc.org/d/com.fulcrologic/fulcro/3.4.6/ has failed to import correctly and lacks namespace docs. Is that a known issue?

Jakub Holý 2020-12-04T08:00:32.062900Z

I understand. I will see what can I do.

Björn Ebbinghaus 2020-12-03T19:32:01.050500Z

There is a #js in com.fulcrologic.fulcro.components/factory for which there is a custom data_reader for the clj environment. Seems like the analyser can’t deal with it.

👍 1
Jakub Holý 2020-12-03T19:34:44.050800Z

@tony.kay have you discussed ☝️ with #cljdoc or should I ask for possible solutions there?

tony.kay 2020-12-03T19:48:17.051Z

I have…I’ve given up on cljdoc

tony.kay 2020-12-03T19:48:50.051200Z

it just didn’t support enough general cljs, and it was eating my life trying to get it to work. I’m done with it. You’re welcome to try

tony.kay 2020-12-03T19:50:14.051400Z

But I’m tired enough of it that it is officially unsupported 😉

Jakub Holý 2020-12-03T20:42:40.051700Z

Ok, understood. Thank you!

Jakub Holý 2020-12-03T20:51:10.051900Z

Is the underlying problem that it tries to analyze cljs code from Clojure? Do you perhaps have examples of other issues you experienced? Or perhaps I can just search #cljdoc archive for your messages?

tony.kay 2020-12-03T22:19:41.052300Z

yeah, search. I don’t remember, but I did ask abt it. Basically if you do anything remotely unusual in cljc or cljs, it can’t handle it

👍 1
tony.kay 2020-12-03T22:20:20.052500Z

So, I’m thinking: it’ll magically start working some day, and is “some else’s problem”

tony.kay 2020-12-03T22:20:32.052700Z

I don’t want to have to worry about it every time I push a release

Björn Ebbinghaus 2020-12-03T22:31:43.055100Z

Is there a nice way to merge component data with an optional/missing key? I have a component, that joins with another component with an ident. This part is optional, but I get ugly warnings in my log because of it.

Helins 2020-12-03T23:03:44.056900Z

I guess the answer is 11, but on a scale from 1 to 10, how evil is this: passing a parent component (`this`) as a child to its own child so that this child can easily transact on the parent? I think I'm having a stroke.

Helins 2020-12-07T11:08:13.166800Z

Indeed, this little thing was more of an intellectual challenge. However, I typically have a quite a lot of grandchildren somewhere which have well-defined behavior and whose mutation also act on some "main" parent. They are specific enough to have the ident of that parent in their query or passed as props and act on their own. I consider that most of the time, a child should not know the exact type of its parent but it sure can expect it to conform to some contract. A child knows in what context it is supposed to be used.

Björn Ebbinghaus 2020-12-03T23:51:22.057600Z

How about you pass all functions as computed-props to the child?

1