Skip to content

Routing will not finish when clicking on router-link and the target route component is imported dynamically #6030

Answered by sheremet-va
BeniRupp asked this question in Q&A
Discussion options

You must be logged in to vote

All components are pending while vitest does it's thing, await flushPromises() or await router.isReady() won't help.

You can call vi.dynamicImportSettled() to wait for any dynamic import that is currently pending

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sheremet-va
Comment options

Answer selected by BeniRupp
@BeniRupp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants