Call to loginWithRedirect clears React application state

When my React application calls loginWithRedirect, I have no application state when I’m called back. I’ve tried passing the needed state as a single query parameter on the redirect URI, as suggested in a related topic, but that parameter is removed by the time the isLoading variable exported by useAuth0 becomes false.

The application I’m working on logs in one of my known users. When called, it includes a continuation parameter – a URL to populate and call after a successful login.

This behavior means that by the time I’ve logged in the user, I’ve lost the continuation parameter.

I can try other approaches, but this behavior blocks what seems to be the cleanest approach.