Skip to content

useTransition (list of items) #1617

@RexToCode

Description

@RexToCode

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions