Thr0nSK
Memory management in Nuxt
Hi there!
I was wondering whether you could share some resources about memory management in Nuxt, specifically some anti-patterns and/or good practices. I've been having problems with huge memory leaks in my apps, and I don't know where to start looking for potential problems.
The documentation is quite lacking in this regard, in my opinion. The only thing mentioning memory leaks that I was able to find was not to use ref outside the script setup context. I'd be happy to write the docs for this topic once I understand it in more detail.
6 replies
Dynamically added route at runtime
Hi, I'm trying to dynamically add a route at runtime, however, the solution below seems to add the route only after it's already resolved (?)
When I navigate directly to
/my-awesome-product
, I get a 404 but if I continue to use the site without reloading (so that the route stays in the local vue router), the next navigation to /my-awesome-product
works fine.
Any idea what I'm doing wrong?
Thanks!3 replies
Nuxt extends doesn't work
Hi, I'm trying to use
extends
to auto import components from another nuxt project in a different directory, however, no matter what I do, I cannot get it to work.
When the project I'm extending has any module, I get an error that it could not find the module. When I try to extend a simple nuxt project with only 1 component, I don't get an error but I cannot use the component inside the project that is extending it.
This is what the nuxt.config.ts file looks in the project that is extending the base one:
Am I doing something wrong? I've even tried extending a github repo, for example:
And I got an error that it could not find the VueUse module...1 replies