Skip to content

useList hooks throw away value of once #74

@achuinard

Description

@achuinard

My component with a useList hook renders once for every child in a list. If I subscribe on a screen with 2,000 items this is very inefficient - my component re-renders 2,000 times. I think the hook should set the value of the data based on the once('value') and then be smart about handling childAdded. Does this make sense? Or am I doing something else wrong if my component is re-rendering once for every item in my list?

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