Fork me on GitHub
#reagent
<
2019-04-08
>
joshkh08:04:55

are there any philosophical or technical arguments for preferring the passing of data to child components using parameter maps vs. each component subscribing to data?

worlds-endless20:04:49

If I'm writing a components with [my-macro] for content instead of [:div my-content], are there gotchas at work in Reagent that woudl explain a "Can't call setState on unmounted component..." error?

lilactown20:04:25

you can't use a macro as a component AFAIK

lilactown20:04:41

you need to do (my-macro) that will expand to [:div my-content]

lilactown20:04:51

that does not explain your error, however