You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What you were expecting:
Our goal is to create a page with no authentication needed (a forgot password page). We created a route with a noLayout props and we made sure that our getPermissions function in the authProvider did not throw an exception if the user has none. Then we give an empty array of resources to the admin component.
What happened instead:
When I go on the custom route, the admin is stuck on loading.
Steps to reproduce:
Pass an empty array as children to the admin component.
Related code:
<RA.AdmincustomRoutes={[<Router.Routeexactpath="/test"component={Test}noLayout/>]}
...
>{(role: string)=>{switch(role){case'admin':
return[<RA.Resource ...];case'visitor':
// Here is the bug :return[];
Environment
React-admin version: 3.13.1
The text was updated successfully, but these errors were encountered:
What you were expecting:
Our goal is to create a page with no authentication needed (a forgot password page). We created a route with a noLayout props and we made sure that our
getPermissions
function in theauthProvider
did not throw an exception if the user has none. Then we give an empty array of resources to the admin component.What happened instead:
When I go on the custom route, the admin is stuck on loading.
Steps to reproduce:
Pass an empty array as children to the admin component.
Related code:
Environment
The text was updated successfully, but these errors were encountered: