Fork me on GitHub
#reagent
<
2019-04-15
>
weavejester21:04:58

I’m trying to integrate Draft.js into Reagent, and a Stackoverflow post suggests that I need to force an update on change to get it to work. However, it’s a little light on details. What’s the most idiomatic way of forcing a component to update in Reagent?

weavejester21:04:50

Alternatively, does anyone know an editor component that works better with Reagent?

weavejester22:04:23

I guess (r/flush) might work. For reference, I’m looking at: https://stackoverflow.com/questions/37700393/using-draft-js-with-reagent

weavejester22:04:54

Thanks, I’ll read through it

Dustin Getz22:04:08

reagent.core/force-update

weavejester22:04:54

@dustingetz How do you get a reference to the current component? Use a type-3 component?

Dustin Getz22:04:42

ummm good question i can never remember, try reagent.core/current-component