Vue memory leaks in table using dynamic components #11247
Unanswered
pmarchut
asked this question in
Help/Questions
Replies: 1 comment 1 reply
-
Hi man! Did you manage to solve it after all? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone, In our Vue/Vuetify 3 project we have generic table component which conditionally renders different components as table cells.
Unfortunately, tables are causing big memory leaks. I'm suspecting that's because of usage of dynamic 'component' element, because I replaced it with dummy 'div' and memory leaks disappeared.
We don't want to stop using dynamic cell components, because it will delete a lot of our functionalities. Any idea how to get rid of memory leaks and maintain functionality? Is it even possible? Maybe we should somehow compromise functionality and memory management? Maybe You see other cause of memory leaks?
I don't know if it will be helpful, but we used to have the same problem when using Vue/Vuetify 2 and after migration to 3 it still haunts us.
It is a big component, so I removed all the lines of code that I thougth are not important
Method 'getComponentName' takes name from js file where we have declared a bunch of components
and these are registered globally in main.js file
Beta Was this translation helpful? Give feedback.
All reactions