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
If you add a key prop to CToast (e.g. mapping a list of toasts) this warning will show in the console: key is not a prop. Trying to access it will result in undefined being returned.
As you can see CToast attempts to read and forward the key prop. This should be a differently named prop instead.
If you add a key prop to CToast (e.g. mapping a list of toasts) this warning will show in the console:
key
is not a prop. Trying to access it will result inundefined
being returned.As you can see CToast attempts to read and forward the key prop. This should be a differently named prop instead.
coreui-react/packages/coreui-react/src/components/toast/CToast.tsx
Line 79 in 6892858
It's also not typed correctly. keys are numbers or strings
coreui-react/packages/coreui-react/src/components/toast/CToast.tsx
Line 47 in 6892858
coreui-react/packages/coreui-react/src/components/toast/CToast.tsx
Line 166 in 6892858
See docs
https://react.dev/warnings/special-props
The text was updated successfully, but these errors were encountered: