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

Strange things using it just with a LoginForm with React State (not redux in LoginForm component). Example included. #215

Open
ghost opened this issue Nov 3, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 3, 2017

Here it is the demo: https://codesandbox.io/s/98642j3xjo

I throw an exception on loginAction and my form is re-render.

Why?

I need to catch in my LoginForm (as it is doing when I not use userIsNotAuthenticatedRedir(LoginPage)).

Maybe I don't understand well how to use it.

<BrowserRouter>
  <div>
    <Route exact path="/" component={userIsAuthenticatedRedir(HomePage)} />
    <Route path="/login" component={userIsNotAuthenticatedRedir(LoginPage)} />
  </div>
</BrowserRouter>

Maybe related to this #203 ?

@ghost ghost changed the title Strange things using it with a LoginForm with React State (not redux in LoginForm component). Example included. Strange things using it just with a LoginForm with React State (not redux in LoginForm component). Example included. Nov 3, 2017
@tboulis
Copy link

tboulis commented Apr 13, 2020

+1

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

No branches or pull requests

1 participant