Bug: 8.x release doesn't pass through extra props to useDayPicker #1433
-
Bug descriptionPrior to the official 8.x release, I was using beta 38 and this was working fine. To reproduceFork this CodeSandbox: https://codesandbox.io/s/react-day-picker-8-vl4ry with the code to reproduce the issue. StepsWith the below code: <DayPicker foo="foo" /> I was able to retrieve foo in a custom subcomponent with this: const {foo} = useDayPicker(); This no longer works and foo is undefined. Expected behavior
ScreenshotsIf applicable, add screenshots to help explain your problem. Additional contextThis was super helpful functionality to have as I'm using custom components heavily in my usage of RDP and I now don't have a way to grab those props. If there is another way to do this, what is the suggested way? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @reintroducing! Your sandbox is empty and doesn't help to replicate the issue. Anyway, we won't support this way of using Moving to support discussions. |
Beta Was this translation helpful? Give feedback.
Hi @reintroducing! Your sandbox is empty and doesn't help to replicate the issue.
Anyway, we won't support this way of using
DayPicker
. What are you trying to do?Moving to support discussions.