Skip to content

Commit

Permalink
Update docs/data/migration/migration-pickers-v7/migration-pickers-v7.md
Browse files Browse the repository at this point in the history
Co-authored-by: Michel Engelen <32863416+michelengelen@users.noreply.github.com>
Signed-off-by: Flavien DELANGLE <flaviendelangle@gmail.com>
  • Loading branch information
flaviendelangle and michelengelen authored Dec 30, 2024
1 parent 02cfc71 commit 25037da
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,8 @@ You can use the `usePickerContext` hook instead:
The only difference is that `usePickerActionsContext` only contains variables with stable references that won't cause a re-render of your component.
:::

- The component passed to the `shortcuts` slot no longer receives the `isValid` prop, instead you can use the `useIsValidValue` hook:
- The component passed to the `shortcuts` slot no longer receives the `isValid` prop.
You can use the `useIsValidValue` hook instead:

```diff
+import { useIsValidValue } from '@mui/x-date-pickers/hooks';
Expand Down

0 comments on commit 25037da

Please sign in to comment.