-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Transform prop on <Edit> gives React warning #5330
Comments
Thanks for reporting the bug! |
@fzaninotto Still have the same error as @GimpMaster using react-admin v3.11.0. Here is the related code, I think it's related: export const RideEdit: FC<EditProps> = (props) => {
const transform: EditProps['transform'] = ({
status,
customer,
driver,
totalPrice,
steps,
...rest }) => ({
steps: steps.map(({ children, ...stepRest}: any) => stepRest),
...rest,
});
return (
<Edit
title={<RideTitle />}
transform={transform}
{...props}
>
<RideForm />
</Edit>
);
} Or may I missing something? 🤔 Error stack trace:
|
Right, this is a regression introduced by #5604. Reopening this issue. |
Thank you for fixing this in the next update. |
hello, now it reproduced for
|
@sergey-ovsiannikov I can't reproduce it in the form-layout Storybook. Would you mind building a reproduction? By the way, as ra-form-layout is an Enterprise Edition package, you're probably a subscriber, so I recommend that you use the EE support email to communicate with the core team - the conversation will be faster. |
What you were expecting:
Not to have a warning
What happened instead:
I added a simple function to an tag. Currently using the next branch 1.9.0-beta 3 with typescript.
Steps to reproduce:
Use the following code:
Error Received:
Environment
The text was updated successfully, but these errors were encountered: