Performance issues caused by Vue3 not having a component force update feature #12699
Unanswered
jinhuid
asked this question in
Help/Questions
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
eg is a reactive object, the view is automatically updated when its reactive_expand method is called, but there are a lot of getter and setter operations, resulting in a lot of performance consumption, which I'd like to avoid, but can't do. The other method is raw_expand, which has good performance, but the view cannot be updated after the execution finishes. This is because the setter is not triggered during execution, so I triggered it manually. It would be very simple if there was something to force the component to update, but there isn't, so is there a better way to accomplish this example? Here is the Vue Playground
https://play.vuejs.org/#eNrtVktv4zYQ/itTHzZy4zhyHj24SYpskMMW6AO7ix5qGwEj0Q43MiWQlGPD6//eb0hJlh0nt942MKLhPDiPb0jOunNbFP1FKTvDzpWT8yITTt6MNdFVqhaUZMLa63EnybUTSksz7nhhJV6cTHMDsclfSGmSs74wUGnMMmVdYxFsapoa4wWbYodxZysbWrfKJIRresxNKs1dnuVmSIv+XJhnmdJvdGRkekRDOnrMSnlEm7Z57V8ho5Z/ovUaWywGdMyfs/A5D5+L8LmkzaaJ9xQB1/k2dE1dnbbqhaVNjCocWenKgjKhZwjAWe9ezYvcOFqTkSJxaiF75PLP4oU2NDX5nFCEUnICSjtppiKR9DFf0prdhYSHqEOeSQFHqNxgSLqcPwIOXp3trM53Vhc7q8vtCkkCVOvoy6d/7+maLmMwuGx0PwuOAeWQwxhNRhNee3VTJi43UahJUT5mKqFEctQPS+wS+d1O6axLNzcU9w7prV7rsVo3eCVyT8pyH0Ht1hix6nOJIk96s26PoocemS5dN8i2FLdgt022XLZN2raeWfmu/+qiT0VmZcvY9y2qb+jnULhjSvbFgKNOvOEBlFc8QPOKB4B2eRsSlkHo1syK8B/fqI95qdO7J5k8R8sa3h6tarIpq0FfGk1LurmmmD58AHUVcgC9ariritvsX7fsg1wWQqcHnaCiiMIBsbjxp6YU/eSxbEcIoy59/17p39Av3SqwYBRa8hG9f930wWg5Ga18BxJl0tEDZNAIx9gTfJA9wUfZE3yYPXEZ7Jiubg5sbHDYPBsXEEXB5yhFbOlqQvmURnWxRyeDHsWTBpFR3KOTwe66vdzTZusddaz3ljti1m/Wk6aS1ZF4BQRy5KBX/F3VEBzToGoRj16AULw8vA9f+6z/L2D+wHGLYxuNPQxRpreBxG+sT0+rusoZSlD3RKTlCy7uqAsTaOB3iyfIzGSFMFdjJh2uX4JbfqOYzAtphFPYjiKlFyJTKaWykDqVOlmhviJRetYFWiLFg0VQR6XnQuN9UtaW0npv2O2rmsu8dFHEFyvnC3ZoADxafQdphCkhBKvcatwJcRKPDPt9DVb9ovRYXj8btQn+CXSho0Ecx/MQwq6ve+xyyN2mR+ewwaJ+/N4s4qGcXickMLR4kPxrjsi7O+i+lUn1+rMcgLM7zuqfUp5TmktLOnfc0qhykmNy0DCjskgxadg+/SF0KbKM4VGzGVBcKIQdxLwRHy03L5BX2H4UT/DDKWPhHovPeP8NAfYIcVXVPve1Pljoqgzt8l6dhnGoGo14miOboOFScPrNOBnKikbTljvrJEdOSuMRpPjXHckQ1iKTUdy/7EKCo9Dn4TLYp8piDsN1Ns3kspLy6BekLyp1T0O6iAuWET1JNXtyLQZbndgno/QzPHtWGDqHNCiWhGxxLnjKDFsjNU4HeXR6GPCQy1TN+t9srjFDe488L88LlUnzV+GP17gzrC+BcQfg5S+/ex7fYNU1ARu+VA/wv9kl88adv4200iwwKDYyx2ccIzaL77/8KZegG+E8T8sM2u8IP0tkV3KMQe0jLneE3dLz0X7y8yvugq/2fumktnVS9RW88fp+jL17J/VtuOf9i/pW62z+A8MPzB8=
Beta Was this translation helpful? Give feedback.
All reactions