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 noticed that when I attempted to upgrade, that the behavior of the SpaceBetween component changed. When I dug deeper, I found that this was due to the use of the react-keyed-flatten-children package that the SpaceBetween component depends on for introspecting fragments and flattening children:
In React 18, you'd see even spacing between all three divs.
In React 19, because react-keyed-flatten-children is no longer flattening out the children of fragments, it treats the fragment around Second and Third as one unit. This means there's space between First and the fragment, but not between Second and Third.
The issue with react-keyed-flatten-children has been fixed in version v3.1.0. Since it still maintains backwards compatibility back to React 15, it can be upgraded safely.
Hello and thanks for reaching out! We are actively working on making Cloudscape React 19 compatible.
We cannot share any concrete ETA yet and keep this request posted once done.
Description
react 19 not yet added to peerDependencies
Code of Conduct
The text was updated successfully, but these errors were encountered: