re-frame

https://github.com/Day8/re-frame/blob/master/docs/README.md https://github.com/Day8/re-frame/blob/master/docs/External-Resources.md
wegi 2020-07-16T09:35:02.495400Z

Is it good practice to use conditionals in effect-handlers? For Example: If a value is present in app-db, then emit one effects map and if not, do another?

wegi 2020-07-17T07:00:20.002500Z

Haha, true never used it before. 😄 will have a look at it.

p-himik 2020-07-16T09:36:20.495500Z

You're mixing something up. Did you mean "event handlers" in the first sentence? If so, then it's a perfectly valid thing to do.

wegi 2020-07-16T09:36:32.495800Z

Yeah, of course, sry

wegi 2020-07-16T09:36:47.496Z

Thanks for the answer

wegi 2020-07-16T13:04:43.000900Z

Another question: When I have a component called my-component whats the difference between me calling it like a normal function (my-component) and including it with the vector notation [my-comontent] ? I'm guessing the function call has the downside of accidental execution, but I can't find any more info on this.

wegi 2020-07-16T13:17:20.001300Z

Yes indeed, thank you :thumbsup: