Fork me on GitHub
#reagent
<
2020-05-15
>
pmooser12:05:37

Any tips for debugging why a certain use of a component is being unmounted/remounted? I have a text field that when I focus it the first time and type one character, I lose focus because the component gets unmounted and remounted, but subsequent focus/typing is totally fine. I did some searching and see many similar reports in react, but I'm not quite sure what I'm doing wrong in reagent.

aisamu13:05:22

Losing focus/jumping cursors are common issues with controlled components, but the "only on the first time" part puzzles me. Do you have a small reproducible example?

pmooser13:05:25

No, not an isolated example. I managed to work around my problem, but without a great deal of understanding. I will see if it is possible to extract a minimal example. Thanks!