Skip to content

How to handle outdated lazy loaded routes chunk name changes when routing #247

Closed Answered by posva
demyte asked this question in Questions and Help
Discussion options

You must be logged in to vote

Hello! This is because fo chunks names, it's at the bundler level. With Vue Router, you can hook into the router.onError(): vitejs/vite#11804 (comment)

This allows you to reload the page so the browser fetches the new js assets

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@demyte
Comment options

@posva
Comment options

Answer selected by posva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants