You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.
Following the steps in the React Okta widget guide to redirect to a new login page causes a React error / warning, which seems to imply it's not following React or react-router-dom best practices.
Going to a Secure route causes this error in the console on redirect:
Warning: Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.
in RequireAuth (created by WrappedComponent)
in WrappedComponent (created by Context.Consumer)
in Route (created by SecureRoute)
in SecureRoute (at AppRouter/index.js:58)
in Switch (at AppRouter/index.js:34)
in Security (at AppRouter/index.js:26)
in AppRouter (created by Context.Consumer)
in withRouter(AppRouter) (at App.js:13)
in Router (created by BrowserRouter)
in BrowserRouter (at App.js:12)
in ThemeProvider (at App.js:11)
in App (at src/index.js:5)
Expected behavior
Works as it does currently (redirects to login screen when going to Secure route in the browser) but no error.
Minimal reproduction of the problem with instructions
I'm submitting this issue for the package(s):
I'm submitting a:
Current behavior
Following the steps in the React Okta widget guide to redirect to a new login page causes a React error / warning, which seems to imply it's not following React or react-router-dom best practices.
This code example from that guide:
Going to a
Secure
route causes this error in the console on redirect:Expected behavior
Works as it does currently (redirects to login screen when going to
Secure
route in the browser) but no error.Minimal reproduction of the problem with instructions
/messages
route and open the console.Extra information about the use case/user story you are trying to implement
I was testing the Okta login widget with the idea of dynamically swapping Okta clients, but scrapped that idea.
Environment
node -v
): 10.17.0The text was updated successfully, but these errors were encountered: