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!
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!