We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What you were expecting:
I expect the document to match the behavior of code. However, the code snippet in https://github.com/marmelab/react-admin/blob/43c4fafc8bcedebc386c7d3dc3b63cfd56420a17/docs/Show.md#aside-component throws error.
The actual implementation here
react-admin/packages/ra-ui-materialui/src/detail/ShowView.tsx
Line 105 in a170dae
The <Show aside={Aside} {...props}> should be <Show aside={<Aside />} {...props}> to make it work.
<Show aside={Aside} {...props}>
<Show aside={<Aside />} {...props}>
Other information:
Fixing the doc should be simple. But what I want to bring up is, it is not very consistent with #3246 and #3262 introduced for 3.0
What should we do? Change the code now, change the document, or wait and introduce another breaking change in 4.0 #5933 ?
Environment
The text was updated successfully, but these errors were encountered:
Thanks for pointing this out! Indeed, the doc must be fixed.
FYI, we have reverted the #3262 in #3312. We still expect users to inject elements.
Sorry, something went wrong.
[Doc] Fix <Show aside> prop format is component instead of element
<Show aside>
7654b07
Closes #6372
ed4cd33
Closes marmelab#6372
fzaninotto
Successfully merging a pull request may close this issue.
What you were expecting:
I expect the document to match the behavior of code. However, the code snippet in https://github.com/marmelab/react-admin/blob/43c4fafc8bcedebc386c7d3dc3b63cfd56420a17/docs/Show.md#aside-component throws error.
The actual implementation here
react-admin/packages/ra-ui-materialui/src/detail/ShowView.tsx
Line 105 in a170dae
The
<Show aside={Aside} {...props}>
should be<Show aside={<Aside />} {...props}>
to make it work.Other information:
Fixing the doc should be simple. But what I want to bring up is, it is not very consistent with #3246 and #3262 introduced for 3.0
What should we do? Change the code now, change the document, or wait and introduce another breaking change in 4.0 #5933 ?
Environment
The text was updated successfully, but these errors were encountered: