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?
Haha, true never used it before. 😄 will have a look at it.
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.
Yeah, of course, sry
Thanks for the answer
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.
does this help? https://cljdoc.org/d/reagent/reagent/1.0.0-alpha2/doc/tutorials/using-square-brackets-instead-of-parentheses-
Yes indeed, thank you :thumbsup: