Hey ya’ll. Junior Dev here, so apologies ahead of time
I’m using react router with a custom wizard form. Each form page has it’s own context for the state object gathered from the inputs. Everything was working great.
I implemented Auth0 yesterday, and followed the recent SDK. I’m able to authenticate successfully, grab user data, and use the forms as before no problem with the exisiting routes.
I made the PrivateRoute HOC as described in the new blogpost. The redirect to Auth0 login works perfectly when you hit that route, but once authenticated, the form no longer works as expected.
It seems like something is re-rendering and the focus is thrown off the input field you are typing in. Any thoughts on why the input may be going out of focus once it is routed as a PrivateRoute ?