We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a751221 commit e1815c4Copy full SHA for e1815c4
tests/useWatch.test.tsx
@@ -397,7 +397,7 @@ describe('useWatch', () => {
397
it('first undefined', () => {
398
const errorSpy = jest.spyOn(console, 'error').mockImplementation(() => {});
399
const Demo: React.FC = () => {
400
- const formRef = useRef<FormInstance>(null);
+ const formRef = useRef<FormInstance>(undefined);
401
const name = Form.useWatch('name', formRef.current);
402
const [, setUpdate] = useState({});
403
return (
0 commit comments