Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

okta-react: SecureRoute updates state outside of render function now #139

Closed
wants to merge 3 commits into from

Conversation

mschaeffner
Copy link

Fixes #138

Copy link
Contributor

@jmelberg-okta jmelberg-okta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mschaeffner for the PR! I was able to run this locally and can verify it passes our tests.

Just a small nit before we get this merged in. 👍

@@ -14,6 +14,32 @@ import React, { Component } from 'react';
import { Route } from 'react-router';
import withAuth from './withAuth';


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Lets keep the newlines after imports to 1 as we've done in other files.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. I removed the unnecessary newline.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jmelberg-okta Could you please merge this into master. Then I can also create a PR for #70 . As that also deals with SecureRoute I'd like to avoid merge conflicts later on.

@bmorwood
Copy link

bmorwood commented Apr 6, 2018

when will this be merged into master? We are developing an application that needs the exact=true to be passed down to the Route through SecureRoute #70 .

@mschaeffner
Copy link
Author

@jmelberg-okta Any thoughts when this can be merged?

@jmelberg-okta
Copy link
Contributor

Sorry for the delay!

Bumping @robertjd for final review.

@robertjd
Copy link
Contributor

robertjd commented Apr 9, 2018

Thanks for the bump! I'll take a look at this and your other PRs this week.

@robertjd
Copy link
Contributor

Hi again @mschaeffner , unfortunately this slipped the last week but I've set aside time in our new sprint to look a the open PRs for react.

@amitkapps
Copy link

amitkapps commented Sep 5, 2018

Is this fixed yet, if so in what version of okta-react?
I'm using version 1.0.3 and exact = {true} isn't working.
I've 2 secured routes /users and /users/:userId both getting triggered. Am I missing some additional config?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants