Fork me on GitHub
#re-frame
<
2016-01-22
>
mbertheau12:01:44

In https://github.com/Day8/re-frame/blob/1ceb5acc63d576d60f9303459a6a3e9cd9d1ceed/src/re_frame/middleware.cljs#L41 there are a lot of references to core.async in the justification of log-ex. If core.async was removed the justification should be adjusted as well.

niquola15:01:09

Hi, re-framers. What is ideomatic way or convention to render server validation errors in a form components?

mbertheau15:01:58

@nicola re-frame doesn't make any assumptions about the visual design, if that's what you mean.

niquola15:01:36

I know, but most of apps should render errors in a form ;) Should I create special path in app-db for every form and in case of errors put them there? Let's take as example sign-in or sign-up forms. How do you organize structure of app-db for this?

sooheon15:01:38

@nicola: I actually learned about this for the first time recently as well from the code in here: https://github.com/carouselapps/ninjatools/blob/master/src/cljs/ninjatools/auth.cljs You can see my take on it at https://github.com/sooheon/tomaton

sooheon15:01:26

the structure is a key in app-db holding a map representing the form data

sooheon15:01:30

with the values for whatever fields, any state, and another errors map with keys corresponding to the fields