Closed edgaraskazlauskas closed 2 years ago
take a look at https://github.com/AxaGuilDEv/react-oidc/issues/541 - we wanted to use this library but this was a pretty big limitation so we ended up forking and using that users solution. This issue should be looked at more closely by @youf-olivier and team however and the fix is relatively straightforward so you could also just wait for the official solution.
Yes, I have to take this one. I have some times this week. I started to take some issue.
But this one is a bit tricky. I'll take this one soon.
Hi, I was wondering if there is any update regarding this issue?
This is fixed by the future v4 version https://www.npmjs.com/package/@axa-fr/react-oidc-context
V4 solve this issue.
I close the issue fixed with v4. Feel free to reopen it if needed.
Issue and Steps to Reproduce
React router route component unmounts on history state changes when using withOidcSecure. To reproduce, do a history.push call changing only the search params or history state (without changing location), take note that the given component for the route rerenders and loses all local state.
Expected
Component for given route does not reload (as is when not using withOidcSecure).
Actual
Component for given route reloads.