-
What version of React Router are you using?6.4.1 Steps to Reproduce
The authorizationBrowserRouterObjects copy the same format. Expected BehaviorI expected the loader to redirect the user when this loader is triggered. In test cases the authorization does not exist. So pinging the home route should send me to a login page. Actual BehaviorApplication stalls and fails to build. If the Response is not returned then everything returns correctly, with the exception of the redirect. The same occurs when |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I figured it out. The issue was with circular loaders redirecting to each other. There is no error here.
the browserRouterAuthLoader was written poorly. Meant for redirect from login only if user is authorized |
Beta Was this translation helpful? Give feedback.
I figured it out. The issue was with circular loaders redirecting to each other. There is no error here.