Fork me on GitHub
#reagent
<
2018-07-30
>
grav06:08:26

Thanks for the link. Didn’t find what was mentioned in the reddit thread, so I created a PR. https://github.com/reagent-project/reagent/pull/391

justinlee15:08:55

Thanks! Looks good to me.

kennytilton19:07:40

I did not end in the Reagent internals until I started analyzing it for glitches.

kennytilton19:07:28

I confess, though, I never developed a complete mental model of form-Ns.

kennytilton20:07:21

My glaring gap has been form-2 where the outer and inner functions both have parameters. But it is simple:

Remember, outer is called once per component instance. Each time, the parameters to outer will hold the initial parameter values. The renderer on the other hand, will be called by Reagent many times and, each time, potentially with alternative parameter values, but unless you repeat the parameters on the renderer it will close over those initial values in outer.

kennytilton20:07:54

Elementary, watson!