Skip to content
This repository was archived by the owner on Oct 26, 2018. It is now read-only.
This repository was archived by the owner on Oct 26, 2018. It is now read-only.

Don't dispatch action if action would result in no change #222

Closed
@mattkrick

Description

@mattkrick

If I'm at /foo and I click a link (eg on the navbar) to go to /foo it currently dispatches an update location. Is this intended? I'd expect the action creator to check if the next location == current location & only then dispatch the action. Otherwise every time a dev writes a reducer built for UPDATE_LOCATION he'll have to run that check himself (as is, it's a bit misleading to say UPDATE when it's technically a MAYBE_UPDATE)

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