Fork me on GitHub
#fulcro
<
2017-09-14
>
tony.kay04:09:56

@roklenarcic Figwheel embeds it’s port (3449) in the hot reload code. Use port 3000. figwheel will connect its websocket to 3449 no matter what port your load from. Use 3449 for devcards and tests

tony.kay04:09:21

I may have documented it wrong in the README

tony.kay04:09:22

Good catch on the production server main

tony.kay04:09:09

template updated on clojars

roklenarcic07:09:22

I am not sure I understand having components in cljc files. Doesn't render function usually use a lot of CLJS specific things, like #js reader and wrapped JS libraries for components (such as bootstrap)?

cjmurphy07:09:43

@roklenarcic: If it is in a cljc file then the idea is that it can also be for server side rendering, where indeed you do not have any CLJS specific things.

roklenarcic08:09:29

I thought the idea was that it was needed for server reads/mutations in fulcro to have access to queries

cjmurphy08:09:33

I think that is a wrong idea. Ordinarily the defui components are not needed on the server.

tony.kay19:09:37

@roklenarcic Using cljc is for server-side rendering.

tony.kay19:09:26

#js maps to identity via data readers

tony.kay19:09:21

You will also notice the conditional reader used to make sure cljs-only elements have an alternative for clojure If possible