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
Description
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
Labels
No labels