Skip to content

Commit 84c5c55

Browse files
committed
Squashed commit of the following:
commit d557b45 Author: Adam Thompson <[email protected]> Date: Thu Oct 9 15:09:36 2025 -0400 onChange param is explicitly defined commit 8d12db4 Author: Adam Thompson <[email protected]> Date: Wed Oct 8 15:09:55 2025 -0400 add note commit 742729b Author: Adam Thompson <[email protected]> Date: Wed Oct 8 15:06:11 2025 -0400 Update useControlled.spec.tsx commit 7af3b59 Author: Adam Thompson <[email protected]> Date: Wed Oct 8 15:05:00 2025 -0400 Update useControlled.spec.tsx commit 1b002cd Author: Adam Thompson <[email protected]> Date: Wed Oct 8 15:03:10 2025 -0400 Update useControlledValue.ts commit 6a5f57b Author: Adam Thompson <[email protected]> Date: Wed Oct 8 14:26:17 2025 -0400 Create useControlled-inferred-types.md commit 826e771 Author: Adam Thompson <[email protected]> Date: Wed Oct 8 14:21:37 2025 -0400 Update useControlled.spec.tsx commit 8400632 Author: Adam Thompson <[email protected]> Date: Wed Oct 8 14:07:12 2025 -0400 update useControlled commit b19f519 Author: Adam Thompson <[email protected]> Date: Wed Oct 8 14:07:03 2025 -0400 Add type tests
1 parent bd0c2d6 commit 84c5c55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/hooks/src/useControlled/useControlled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { ControlledReturnObject } from './useControlled.types';
1212
*/
1313
export const useControlled = <T extends any = undefined>(
1414
controlledValue?: T,
15-
onChange?: (val?: T) => void,
15+
onChange?: (val: T) => void,
1616
initialValue?: T,
1717
): ControlledReturnObject<T> => {
1818
/**

0 commit comments

Comments
 (0)