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

Create redirect action config prop to support any redux router integration #13

Merged
merged 1 commit into from
Feb 3, 2016

Conversation

mjrussell
Copy link
Owner

Resolves #1

Means no more hard dependency on a redux-routing integration

Usage:

const UserIsAuthenticated = UserAuthWrapper({
  authSelector: state => state.user,
  redirectAction: routeActions.replace, // the redux action to dispatch for redirect
  wrapperDisplayName: 'UserIsAuthenticated'
})

mjrussell added a commit that referenced this pull request Feb 3, 2016
Create redirect action config prop to support any redux router integration
@mjrussell mjrussell merged commit 6eaa14b into master Feb 3, 2016
@mjrussell mjrussell deleted the redirect-action-config branch February 3, 2016 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant