We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I got this error below after updating to the latest version, may I know if there any fix for the TypeScript?
Error
Type error: Property 'useForceUpdate' does not exist on type 'FC<FormBuilderInterface> & { defineWidget: (key: string, component: any, metaConvertor?: (field: FieldType) => FieldType) => void; }'. const [form] = Form.useForm(); const forceUpdate = FormBuilder.useForceUpdate(); ^
Usage
const [form] = Form.useForm(); const forceUpdate = FormBuilder.useForceUpdate();
Temporary solution (Quick Fix) Anyone facing this issue can actually pin the version to 2.1.2 since version 2.1.3 only added the TypeScript feature.
2.1.2
2.1.3
The text was updated successfully, but these errors were encountered:
As a workaround, I added these lines to my functional component (based on https://github.com/rekit/antd-form-builder/blob/master/src/FormBuilder.js)
const [, updateState] = React.useState<any>(); const forceUpdate = React.useCallback(() => updateState({}), []);
Sorry, something went wrong.
No branches or pull requests
I got this error below after updating to the latest version, may I know if there any fix for the TypeScript?
Error
Usage
Temporary solution (Quick Fix)
Anyone facing this issue can actually pin the version to
2.1.2
since version2.1.3
only added the TypeScript feature.The text was updated successfully, but these errors were encountered: