Skip to content

Suggestion: Usage examples should use selectTheThing naming pattern instead of getTheThing #355

Closed

Description

@samdesota

One thing I've found to be very helpful when working with reselect has been naming selectors with selectTheThing instead of getTheThing.

get is a overloaded term in programming. I've found that when I use get for my selectors very often the conflict with other types of getters. This is especially impactful when using selectors with auto-imports.

Obviously, users are free to call selectors whatever they want, but I've found that when telling people about the select__ pattern they tend to facepalm and wish the documentation used that pattern when they learned reselect.

Activity

  1. zomars commented on Aug 8, 2018

    @zomars

    I agree with this, get sometimes implies a fetch call.

  2. markerikson commented on Feb 7, 2021

    @markerikson
    Contributor

    Agreed, we should update examples this way.

  3. added
    Documentation
    on Oct 17, 2021
  4. markerikson commented on Oct 20, 2021

    @markerikson
    Contributor

    Done!

    We still need to rewrite the docs to match the newer "Modern Redux" patterns, so I've filed #515 to cover that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions