Replies: 1 comment 7 replies
-
no because react needs to remove the elements from it's tree. This would go against declarative coding & against react convention leading to what I imagine to be a crazy amount of bugs. If you're having issues and can share an codesandbox I might be able to offer better advice on what you should do as it feels very vague now. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi there, while using useTransition for a list of items with feature of "add item(s)" and "delete item(s)", which will change the quantity of items in the list. Is there a specific way to avoid re-rendering the whole list when just "adding" or "deleting" item(s) to the list, while the other items are unchanged in their own position.
Perhaps, same question for "filtering" feature, since some items are actually in the same position when some other items are filtered out.
The avoiding of rendering the whole list while "adding" or " deleting" items work for applying useMemo to each item while not putting into the useTransition function.
Hope for advices. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions