Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow To Create An Admin Without Resources #7609

Merged
merged 2 commits into from
May 2, 2022
Merged

Conversation

djhi
Copy link
Contributor

@djhi djhi commented Apr 29, 2022

Fixes #7598

@djhi djhi added the RFR Ready For Review label Apr 29, 2022
@djhi djhi added this to the 4.0.2 milestone Apr 29, 2022
@vercel vercel bot temporarily deployed to Preview – react-admin April 29, 2022 16:33 Inactive
@@ -181,6 +180,7 @@ export const useConfigureAdminRouterFromChildren = (
};
}, [register, unregister, resources]);

console.log({ status });
Copy link
Member

Choose a reason for hiding this comment

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

console.log spotted

: 'empty'
getStatus({
children,
resources,
Copy link
Member

Choose a reason for hiding this comment

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

I suggest you use the same routesandResources as in the effect, so that the reader doesn't try to understand why there is a difference

@fzaninotto fzaninotto removed this from the 4.0.2 milestone May 1, 2022
Copy link
Contributor

@slax57 slax57 left a comment

Choose a reason for hiding this comment

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

Okay actually it was not as complicated as I imagined 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CustomRoutes don't work without resources
3 participants