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

Thrown an error when using a Reference field without the associated Resource #6258

Closed
fzaninotto opened this issue May 7, 2021 · 1 comment
Assignees

Comments

@fzaninotto
Copy link
Member

Many newcomers don't understand why their ReferenceField or referenceManyField doesn't display anything - generally, they have forgotten to declare the related Resource.

It's documented, but many newcomers don't read the documentation.

We can detect that such components are used without the right resource, we should throw an explicit error in that case.

@WiXSL
Copy link
Contributor

WiXSL commented May 19, 2021

This issue can be closed

@djhi djhi closed this as completed May 19, 2021
ogustavo-pereira pushed a commit to ogustavo-pereira/react-admin that referenced this issue Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants