Fork me on GitHub
#fulcro
<
2018-04-20
>
tony.kay00:04:24

@fiddlerwoaroof Use shadow-cljs. I use all sorts of them: react-autocomplete, transition-group,e tc.

fiddlerwoaroof00:04:41

Is there a minimal demo?

tony.kay00:04:56

yeah: lein new fulcro my-app shadow-cljs demo

tony.kay00:04:36

it doesn’t use anything from the NPM ecosystem, but from there all you have to do is add the lib to package.json, and require it as described in the shadow-cljs manual, and in the Fulcro dev guide

fiddlerwoaroof00:04:13

And it'll have something like piggieback/figwheel available?

tony.kay00:04:13

The Fulcro Developer’s guide gives a D3 example, and one from victory charts.

fiddlerwoaroof00:04:20

I'm fairly new to all this 🙂

tony.kay00:04:25

shadow-cljs does all of that, yes

tony.kay00:04:56

@claudiu I’m going to write a helper function for the routing ns for this

tony.kay00:04:08

I’ll post a demo shortly

tony.kay01:04:57

@claudiu You around? I’ve got a demo working for you. I added some additional helpers to the routing ns to make it easier: https://github.com/awkay/dynamic-routing-ssr

claudiu19:04:19

Thank you. :) Works really nice & its really clean with the helper functions.

tony.kay01:04:56

Fulcro 2.5.2-SNAPSHOT on clojars

tony.kay01:04:18

which has the additional helpers. That project demonstrates SSR (only)

tony.kay01:04:03

2.5.2 released, and developer’s guide updated with SSR Dynamic routing docs which include that example code.

bananadance 8
levitanong07:04:34

@tony.kay PR submitted adding js type hints

levitanong07:04:55

Also:

------ WARNING #5 --------------------------------------------------------------
 File: fulcro/i18n.cljc:658
 constant tr assigned a value more than once.
Original definition at externs.shadow.js:16
--------------------------------------------------------------------------------

------ WARNING #6 --------------------------------------------------------------
 File: fulcro/i18n.cljc:661 
 constant trc assigned a value more than once.
Original definition at externs.shadow.js:17
--------------------------------------------------------------------------------

------ WARNING #7 --------------------------------------------------------------
 File: fulcro/i18n.cljc:664
 constant trf assigned a value more than once.
Original definition at externs.shadow.js:18
--------------------------------------------------------------------------------