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
I already reported the issue but maybe not in the place where you typically look - reactjs/react-codemod#321. There are also other people experiencing the same problem. The gist is when I am running npx codemod react/19/replace-default-props it only removes defaultProps and not adding default props to destructured component props. It happens to all files.
Codemod version: 0.14.2
React/19/replace-default-props: 1.0.0
Add any other context about the problem here. This might include the target project, an explanation of the faulty output related to business logic, relevant links, etc.
The text was updated successfully, but these errors were encountered:
I experience the same issue. Properties are removed from Component.defaultProps, but not inserted as default values for props in functional component signature.
Thanks for reporting this issue. We’re aware of it and appreciate your feedback. Due to other priorities, it might take some time before we can address it. We’ll keep this issue open and on our radar in the meantime.
actually i went ahead and published a new version of this codemod to the registry and tested on the test fixtures that @quarhodron shared and it works fine now... thanks @amirabbas-gh for the fix. closing this.
I already reported the issue but maybe not in the place where you typically look - reactjs/react-codemod#321. There are also other people experiencing the same problem. The gist is when I am running
npx codemod react/19/replace-default-props
it only removes defaultProps and not adding default props to destructured component props. It happens to all files.Codemod version: 0.14.2
React/19/replace-default-props: 1.0.0
Faulty codemod
react/19/replace-default-props
Sample code snippets
Original
Expected
Actual
Logs:
Sorry somehow but I cannot get the logs.
I run
and logs are empty
Additional context
Add any other context about the problem here. This might include the target project, an explanation of the faulty output related to business logic, relevant links, etc.
The text was updated successfully, but these errors were encountered: