-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Bug - [Datepicker]: Type 'Dispatch<SetStateAction<Date>>' is not assignable to type '(day: Date | undefined) => void'. #2929
Comments
Excellent, thank you so much for the clarification. That patched the issue quickly, appreciate your help! |
Sure, you're welcome.
That's possible because the type checking here is less strict as the one you've been using. |
Okay, that makes sense, thanks again for the insight! I'll close this issue, hope you have a great rest of your week! |
Forma 36 bug report
Summary
Unable to render
<Datepicker />
component in React/ReactDOM 18.2.0. I receive the following error:Here's a working example within the playground (I'm assuming the playground is using React 17 or below):
https://f36.contentful.com/playground?code=N4Igxg9gJgpiBcICWBbADhATgFwATFwFcBnGAZWwENsZcBfXAM0whVwHJMZKxt2BuADoA7Eagw58I3DNwAVGAA9sASWFpC2ADTTZAEWow0SMAGsYmHcIbNWHAAKRhNZ40IAbAPSMAzADYAWkh0CGEYZ2IBETFnC0YeWgVlNQ1sAAUWNGIpYVkOSkwkSgD3SgAjGHd2eFxibELhAHMhXNliJAAvGAB+GvZiFEp3KtwAHw4UGCgkQhR2MaJhWEYkMKgWvIA3IcIYGrqG5t0ZQcUAGXDG7AALXtxhWYrMDdlQgGFryia93AAKNAKlBQdy+AE8AJS4AC8AD5cJsIEh1iI6NFhE46rgAGJISpQOSgtDkADuSGwYGuFmhf2OTFx7nxhJ+B1WjSseQIADpuTRkupNBkIFl6DU0gVsEV3AAeJKqfnpTLEGEiSGwnJ5Yik8nXP4rPEEomQ4C0vJgSikDi8vjwE15WRcbCETC5X4ypRy1L4bmcq0pAWKhieGHgl523DLSgebA21phs0W9hQQzVXC2uOhTFJ0HUsLE3AGGi-ENpu0YvAEADa7G27l27AAujUa7sAEowFAQTZTLS4b00dA4vGC4UMKG4X3y4fEUNh2Rl3AV0juGC8KYGUE90jYMiVFc0KDr+vUkjkKiF3P5wxF4uiWOzmQOp0ukv3qUFowmcyYVN3+-3pM0FiWCDNgULsGcEHhlAuCgrBoLsC+f4yEue5TFCwAoauB6UKCqK-khdqhDuy68OhW7Eah2G4YhSEPCgTwAPKMAAsqENzEOhABMeEEXaQY0bgN55HhdAtCISgSHgEZRti9KMkSZBahSFj8CAdBAA
Environment
Browser: Version 130.0.6723.69 (Official Build) (arm64)
OS: MacOS 14.6.1 (23G93)
Steps to reproduce
.tsx
component file.npm run build
, receive error.Expected results
Datepicker component should render without issue in latest stable React. All other Form36 components are rendering correctly in latest React but I'm unable to use
useState
withsetSelectedDay
ononSelect
prop for the Datepicker component.Actual results
Datepicker component errors stating the type of the prop value is incompatible with the component.
The text was updated successfully, but these errors were encountered: