Subscribe on changes!

What if I want to trigger <Suspense> when switching routes?

avatar
Oct 4th 2022

What problem does this feature solve?

I want to achieve the effect of the title, but it is not supported at present. It will only be triggered when entering the route for the first time, but not when switching routes. Will it be considered to support it in the future?

What does the proposed API look like?

<Suspense></Suspense>
avatar
Oct 4th 2022

Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow.


You are trying to achieve data refreshing. You can still achieve it with a key on the component on the RouterView slot.