Closed mattkrick closed 6 years ago
Hm 🤔and if you replace <FlipMove>
with a <div>
, you don't see the same issue? What if you get rid of typeName
?
I think setStates in cWRP
are fine, the problematic ones are in cDU
, since setState
causes an update (but doesn't cause new props to be received). Looking through the source, the only potentially-unsafe setState
calls happen when items are removed, or when the animation finishes; neither of those things should happen in an infinite loop. So this is confusing!
I'm sorry for how long it took for me to respond to this, and I imagine you've either found a workaround or moved onto a different solution, but if not, I'll try to find the time to look into this. I haven't tested FlipMove with React 16.4 yet - if anyone else has and encounters the same issue, please share!
Closing, since it sounds like an isolated issue, and one that I wasn't able to reproduce. Will happily re-open if more info can be provided.
in React v16.4 i occasionally this this bug when adding a new item. any hints as to what's the cause? perhaps the setState should be debounced?
Calling args:
child div is set to position relative.