Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce unnecessary calls to useSelector selector #1803

Commits on Aug 19, 2021

  1. Add a failing tests (and update one test)

    Currently, useSelector(selector) will call the passed selector twice on
    mount when it only needs to be called once on mount. This is
    unnecessary, and in the case of expensive selectors, can be a
    performance concern.
    sufian-slack committed Aug 19, 2021
    Configuration menu
    Copy the full SHA
    7f2ca90 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2021

  1. Reduce the number of calls to the provided selector by one

    By checking if the store state has differed prior to recalculating a
    selector, we can avoid unnecessary selector recalculation in most cases
    for components on mount.
    sufian-slack committed Aug 24, 2021
    Configuration menu
    Copy the full SHA
    75b2fba View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2021

  1. Configuration menu
    Copy the full SHA
    2ac8bfc View commit details
    Browse the repository at this point in the history