Skip to content

Discussion: Antipattern to recommend useTrackedSelector #41

Closed
@JackCA

Description

@JackCA

I'm in the process of migrating to this library from react-redux (it's made a very large positive performance impact) -- but I noticed that the recipe for useTrackedSelector contains a useTrackedState() call inside of it.

If a developer who has components with muliple useSelector calls were migrating from react-redux and implemented this recipe, wouldn't they violate the recommendation to only use useTrackedState() once in each component?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions