carry

viesti 2016-09-20T07:14:49.000014Z

Hello world

viesti 2016-09-20T07:16:14.000015Z

appropo, is there any take on server side rendering with carry? 🙂 Maybe along the lines of instructions/hints on how to form and load initial state of the app

kauko 2016-09-20T10:09:09.000016Z

Hi Kimmo 🙂

kauko 2016-09-20T10:11:01.000017Z

To answer your question, not that I know of. I was in the process of adopting bidi a few weeks ago, but I haven't worked on my project for a while because of things.

kauko 2016-09-20T10:11:59.000018Z

but if you don't care about URL navigation, then loading the initial state is super easy, right? If you do care, then you can just use the same routes on the client and the server, which bidi allows you to do

metametadata 2016-09-20T12:04:17.000019Z

Hi @viesti! There's no guide on using Carry with server-side rendering yet. I guess it shouldn't be much different from what you'd do using any other [React-based/Flux-like] stack, e.g. Redux: http://redux.js.org/docs/recipes/ServerRendering.html The biggest hurdle will probably be the rendering part itself. Here's a recipe for Reagent: https://github.com/reagent-project/reagent-cookbook/tree/master/recipes/reagent-server-rendering and also a related issue https://github.com/reagent-project/reagent/issues/247. So you could also consider replacing Reagent with Rum which has a better support for server-side rendering.

viesti 2016-09-20T12:54:21.000023Z

carry-rum might be neat

viesti 2016-09-20T20:15:30.000026Z

Another thing I was wondering about is the recent addition of coeffects/effects to re-frame (https://github.com/Day8/re-frame/wiki/Effectful-Event-Handlersand) how they compare to the control function of carry