Skip to content

Router#1

Open
PabloMD wants to merge 2 commits into
szkola-reacta:mainfrom
PabloMD:router
Open

Router#1
PabloMD wants to merge 2 commits into
szkola-reacta:mainfrom
PabloMD:router

Conversation

@PabloMD

@PabloMD PabloMD commented Feb 28, 2021

Copy link
Copy Markdown

Looks like there is need to compare full path in renderRoutes() ?

But in src/components/SecureRoute/index.js works only the <Redirect ...>.
If you uncomment the

// const renderComponent = () => <Redirect to={{ pathname: loginPath }} />; // return <Route {...props} component={renderComponent} render={undefined} />;

it still renders Dashboard...

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