Fork me on GitHub
#re-frame
<
2017-04-05
>
souenzzo01:04:42

Hey, how to get path/query string's from goog.history.Event. (or how to route a re-frame with path/query params?)

niquola07:04:24

Hi re-framers, what is your preferred approach to huge forms?

miikka11:04:33

Can I use subscriptions inside event handlers? Does it even make any sense?

pdlug11:04:53

@nicola It "depends", what issue are you facing?

niquola11:04:53

a lot of forms with tricky logic - form builder? form state? validation?

pdlug12:04:13

Form state goes in the main app db just like anything else, validations as event handlers or in a subscription, I've created builders for complex forms but it's all very dependent on the specific cases.

musheddev16:04:05

@miikka If you have a good understanding of how to separate subscriptions and events, consuming subscription from an event does make sense. It may be added in the future but there is a 'hack' for now if really needed. https://github.com/Day8/re-frame/issues/255

miikka16:04:48

Yeah, thanks

danielgrosse21:04:57

Is it suitable to create view/event/subs/db on a component base? Or do you suggest to use it for routes?