Eduardo San Martin Morote
Eduardo San Martin Morote
You’re creating a cyclic import. Use useRouter
Yeah, there isn't a default toJSON method on classes, it's something that needs to be implemented. But I don't see what production use would `toJSON` have for Vue. If the...
I'm labelling this as discussion because I'm not sure of the direction we should take and I don't want people to submit a PR and end up wasting their time...
Thanks, I will have to give it a try. In the end there were other parts that were crucial during HMR like data loaders. I wish it was easier to...
The process is definitely worth simplifying, maybe even fixed. Without the current implementation, there was no invalidation at all and things were even worse... The info you provided here is...
@jods4 Do you have small examples I can debug in the playground regarding this: > That's not accurate. Vite will notice the module has changed and invalidate it, but it...
@cucuzi Can you try cloning the repository and reproducing the HMR error within the playground? (`pnpm run play` and check `playground` folder)
Thanks for taking the time! I'm struggling to reproduce the duplication of auto-routes but I think I've seen it > Instead I would suggest to compute a hash of auto-routes...
I'm considering adding an optional callback to `handleHotUpdate` that runs after replacing the routes. This allows for runtime-based added routes [like redirects](https://github.com/posva/unplugin-vue-router/issues/107#issuecomment-2298388066). Does that also work for your use case
Good idea! They can be made available, they should also be accessible with `router.getRoutes()` since it happens after but maybe it makes sense to allow running it before replacing the...