Tags: AntaresT/recharts
Tags
fix(types): return JSX in a function instead of a class component (re… …charts#4970)
Fix stacked bar default props 2x (recharts#4618) <!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> Safely re-add defaultProps to places where props are being read directly from graphical items to fix issues with current alpha release Fixes stacked bars and stacked areas. maybe more ## Related Issue <!--- This project only accepts pull requests related to open issues --> <!--- If suggesting a new feature or change, please discuss it in an issue first --> <!--- If fixing a bug, there should be an issue describing it with steps to reproduce --> <!--- Please link to the issue here: --> recharts#4558 ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> support react 19 in 2.x. Lots of defaultProps issues ## How Has This Been Tested? <!--- Please describe in detail how you tested your changes. --> <!--- Include details of your testing environment, and the tests you ran to --> <!--- see how your change affects other areas of the code, etc. --> See tests added. These now pass in R19 and 18 ## Screenshots (if appropriate): ## Types of changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [X] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Checklist: <!--- Go over all the following points, and put an `x` in all the boxes that apply. --> <!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> - [ ] My change requires a change to the documentation. - [ ] I have updated the documentation accordingly. - [X] I have added tests to cover my changes. - [ ] I have added a storybook story or extended an existing story to show my changes --------- Co-authored-by: Coltin Kifer <[email protected]>
fix: legend defaultProps usage for R19 (recharts#4589)
2.x: Fix issues with React 19 (recharts#4573) recharts#4542 was incomplete with regards to `defaultProps`. This PR ensures the test suite is green in React 19 as well as well as fixing all new warnings introduced in React 19. --------- Co-authored-by: Coltin Kifer <[email protected]>
PreviousNext