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
Our application SCOUT uses version 12.0.0 of the design system and React version 18.3.1. When I run our tests, I see the following warning repeated for many components in the design system:
Warning: Spinner: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
at Spinner (scout/client/node_modules/@cmsgov/design-system/dist/react-components/esm/Spinner/Spinner.js:12:73)
Looking at the design system repo, it looks like defaultProps is still in use. I'm wondering if this is something that is being looked at for a future version.
(We also have our own code in SCOUT using defaultProps that needs to be updated).
To Reproduce
Steps to reproduce the behavior:
Start an application like SCOUT that has version 12.0.0 of the design system and React version 18.3.1.
Thank you for raising this issue @night-jellyfish! We are in the process of upgrading to React 18.3.1 ourselves and hopefully when that happens we'll be able to address this issue directly. Thanks!
Describe the bug
Our application SCOUT uses version 12.0.0 of the design system and React version 18.3.1. When I run our tests, I see the following warning repeated for many components in the design system:
Looking at the design system repo, it looks like
defaultProps
is still in use. I'm wondering if this is something that is being looked at for a future version.(We also have our own code in SCOUT using defaultProps that needs to be updated).
To Reproduce
Steps to reproduce the behavior:
Screenshots
Can be provided in Slack.
Expected behavior
I expect to not see the warning.
Additional context
The text was updated successfully, but these errors were encountered: