Fork me on GitHub
#fulcro
<
2018-12-03
>
tony.kay00:12:36

@jeremys Pathom and Fulcro are tightly related, and Pathom includes all sorts of tools that are specifically for Fulcro use. The server-side parsing of EQL (which is what Pathom and Fulcro use) is a simple “drop in place and go” thing.

👍 1
levitanong06:12:53

@tony.kay as of 2.6.17, render-to-str doesn’t seem to work anymore, complaining upon invocation of (dom/render-to-str (root-factory props)) that something is not component. This worked in 2.6.16, and usage of this is shown in: http://book.fulcrologic.com/#_server_side_rendering_2

tony.kay15:12:33

Thanks, I added a bunch of SVG tags…mush have accidentally busted something. What is the “something” that isn’t a component, any idea?

tony.kay16:12:33

Check the ticket…My tests call that exact kind of code, and they pass, so I’m curious if you’re doing anything like refer :all on DOM, since it has set symbol and filter now from SVG, and that could mess with your clojure functions. Perhaps I should rename those so they don’t conflict.

sooheon16:12:59

Has anyone deployed the new lein-template (shadow-cljs based) to heroku? Not sure how to get heroku to run both npm install and lein uberjar. Workaround would be running npm install locally and committing the node-modules directory?

apohorecki17:12:13

I haven't, but it sounds like what you need is multiple buildpacks: https://devcenter.heroku.com/articles/using-multiple-buildpacks-for-an-app

sooheon17:12:02

thanks! trying that out

tony.kay17:12:54

you could also add prep tasks to the uberjar profile

tony.kay17:12:38

There’s a lein plugin for running sh commands…but not sure on Heroku…the build packs is prob closer

sooheon00:12:57

Yep, got it working with the node buildpack, thanks.