Fork me on GitHub
#reagent
<
2019-05-18
>
Nolan11:05:56

Hi all, I’m having a problem with reagent. When I set a ref on, say, a div, when I get the clientHeight of said div in component-did-mount, it will be incorrect initially. However, if I wait like 100ms, and then get the height, it will be correct. So there seems to be some kind of race condition between the div reporting its height and the CSS taking full effect on the div. Has anyone else experienced this problem?

Vesa Norilo16:05:49

any chance it’s mobile safari?

Nolan21:05:52

No, this is on Google Chrome.

orestis07:05:12

I think this is a problem with reagents async rendering, unfortunately. Not sure you can work around it easily. It’s one of the reasons I switched to #hx

👍 4
Daouda21:05:05

hey guys, i am about to start a project with reagent and need some help to pic a UI framework to work it. Any advices?