fulcro

sheluchin 2024-09-16T13:39:56.708549Z

Update: fixed it now. What I missed was that the params need to be passed specifically under the :route-params key like so:

(let [{:keys [report-props report-factory]} (r.hooks/use-report this ThingList {:route-params {:thing/id id}})]
  (report-factory report-props))
Leaving this up for posterity. --- I'm trying to use r.hooks/use-report while passing in a param for filtering the query in the resolver. I just can't seem to get the param to show up in the resolver call. It seems like the same problem as discussed https://clojurians.slack.com/archives/C68M60S4F/p1710820736208429 a while ago, but the only difference is I already have a ro/controls defined in the defsc-report. Any suggestions for what I might be missing?

Joe R. Smith 2024-09-16T15:48:49.667539Z

Is there pathom3 attribute error handling middleware somewhere for fulcro3?

Joe R. Smith 2024-09-16T23:05:14.693279Z

Yes I think so.

liebs 2024-09-16T18:16:41.410799Z

is there anything, in theory, preventing one from using Fulcro with https://github.com/vadimdemedes/ink? It is a React renderer but it provides its own render function. Would that require using the raw namespaces?

roklenarcic 2024-09-17T13:22:26.646569Z

How would you run this in someone’s terminal? To use this you would need to compile it with clojurescript compiler, but your command line app would be in clojure?

tony.kay 2024-09-17T13:30:14.493119Z

oh, in CLJ you don’t need it.

tony.kay 2024-09-17T13:30:31.007579Z

and in CLJ you just plug in your renderer

tony.kay 2024-09-17T13:30:36.567379Z

sorry, was in a hurry

tony.kay 2024-09-17T13:30:45.267559Z

I thought maybe it was using node/js

liebs 2024-09-17T17:42:06.218789Z

Ink does run in node

tony.kay 2024-09-17T18:27:34.393379Z

ALl of the react interdependencies are in CLJS. I think if you replace the rendering (root and optimized), via options, then it should work.

tony.kay 2024-09-17T18:27:43.304529Z

I’ve made videos about this…see YouTube

tony.kay 2024-09-17T18:27:59.552349Z

https://www.youtube.com/watch?v=JhF-_yRI5cE

tony.kay 2024-09-17T18:28:53.213719Z

the latter is an internal video that isn’t searchable, but you’re free to watch it, The repo it references IS available to play with, so look at it

tony.kay 2024-09-17T18:29:42.108549Z

https://github.com/awkay/beginner-drafting

tony.kay 2024-09-17T18:30:16.962129Z

https://github.com/awkay/beginner-drafting/blob/main/src/main/app/application.cljc Runs in CLJ and renders out hiccup, as an example

liebs 2024-09-17T19:02:24.558639Z

Thanks for all the resources! I'll take a look

tony.kay 2024-09-16T20:01:12.016629Z

well, if you put react in as a module so the stuff compiles, it might work just by plugging in a custom render.

Jakub Holý (HolyJak) 2024-09-16T20:52:19.956249Z

👋 I am attending Heart of Clojure this week. You can recognise me by my Fulcro t-shirt :-)

Eric Dvorsak 2024-09-17T07:33:42.234419Z

👋 See you there!

❤️ 1