Add example use cases of react-transition-group #4558
Unanswered
davidroeca
asked this question in
Ideas
Replies: 3 comments
-
2 years left, and issues regarding transitions still not resolved |
Beta Was this translation helpful? Give feedback.
0 replies
-
Haha, 1 more year and still the same problem. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, I also encountered this problem. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Add recommended ways to work with libraries like react-transition-group with field arrays. I stumbled across a few tricky bugs related to working with react-transition-group. See an example here: https://codesandbox.io/s/buggy-react-transition-group-and-react-hook-form-egmik?file=/src/App.js - there are a number of bugs that pop up if you end up clicking
Add
andRemove
in rapid succession.My work-around for now is to avoid using the
TransitionGroup
component altogether, and for each field array item, render a sub-component that manages its ownexiting
state. Then, instead of callingremove()
directly, callsetExiting(true)
. Something like the following:Happy to take a stab at these docs if there's interest -- just point me in the right direction to get started!
Beta Was this translation helpful? Give feedback.
All reactions