Fork me on GitHub
#reagent
<
2016-01-21
>
sooheon08:01:03

what’s the correct way to have a wrapper component to take another component as an argument in reagent? For example if I have a (defn settings [component] [:div [:h1 “settings] [component]]) and then pass it account-settings general-settings like [settings account-settings], it doesn’t seem to work. Are there any examples of this?

sooheon08:01:35

ah I figured it out, I should have been passing it to the inner function if it’s a form-2 fn :)

slotkenov11:01:47

How about using selenium with reagent? selenium needs to know when react is done rendering Seems you could watch the react componentDidUpdate function to wait for changes to be flushed to the DOM How would you implement this react function in a reagent component?

slotkenov11:01:04

Something with reactify-component

slotkenov11:01:10

but then I’m stuck

bteuber13:01:14

@slotkenov: I think a better way would be calling reagent.core/force-update-all to flush rendering before testing

slotkenov13:01:39

@bteuber: maybe that would work, I’ll give it a try