-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
application freezes and show high CPU usage when forms instantiated from property #531
New issue
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
Comments
ref #392 |
Note: in some examples |
you can createform before beforecreate. |
I've faced the same issue in version 1.5.3. creating the form either in My use case was a bit stranger. My form was inside a Modal. The application only froze when I closed the modal. |
still having this issue with |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
1.3.4
Environment
vue: 2.6.7, ant-design-vue: 1.3.5, vue-class-component: 7.0.1, typescript: 3.3.3, vue-property-decorator: 7.3.0
Reproduction link
https://stackblitz.com/edit/typescript-vuejs-form-init
Steps to reproduce
it caused only when we instantiate forms from class component
What is expected?
in examples we see something like:
it's same if we use pure class property in vue class component:
but that instantiation just freeze application and you can't enter any value to form.
If we use
created()
hook it will work properly:What is actually happening?
this.form = this.$form.createForm(this);
not working in vue class component and freeze application with high CPU usagecheck stackblitz example for demo
The text was updated successfully, but these errors were encountered: