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
After updating to React v.18 we started to get "Invalid date provided" warnings in the console. The warnings disappear when we remove StrictMode. We are using a custom formatDate function that uses the Intl.DateTimeFormat to format the date. It seems that during the second render the preloadedDate value is the formatted value and not the value that we provide to the component.
After updating to React v.18 we started to get "Invalid date provided" warnings in the console. The warnings disappear when we remove StrictMode. We are using a custom
formatDate
function that uses theIntl.DateTimeFormat
to format the date. It seems that during the second render thepreloadedDate
value is the formatted value and not the value that we provide to the component.I've made an example here: https://codesandbox.io/p/sandbox/serverless-violet-8xnj43
I'm not sure if there is something wrong with the way we have implemented it or if this is an actual issue. Any help is appreciated!
The text was updated successfully, but these errors were encountered: