Vue router cached component #2214
Unanswered
piyush-bhatt
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm facing an issue with dynamic import on a lazy loaded route. It triggers the component fetch the first time but say the fetch failed, it doesn't trigger the fetch anymore the subsequent times.
For e.g., take the following route
Calling
push({ name: 'about' })
triggers a network call to fetch theAbout
component. But say there's a network issue and the component fails to be fetched, callingpush({ name: 'about' })
again doesn't trigger the request anymoreI'm assuming it has something to do with the following
but shouldn't the component only be cached if the fetch was successful? Or maybe there's something that I'm understanding or doing wrong?
Here's a quick screen recording of the same
Screen.Recording.2024-04-17.at.12.07.09.mov
Beta Was this translation helpful? Give feedback.
All reactions