Skip to content

vue-mvvm / router / RouterProvider

RouterProvider

ts
const RouterProvider: DefineComponent<{
}, () => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>, {
}, {
}, {
}, ComponentOptionsMixin, ComponentOptionsMixin, {
}, string, PublicProps, ToResolvedProps<{
}, {
}>, {
}, {
}, {
}, {
}, string, ComponentProvideOptions, true, {
}, any>;

RouterProvider is a Vue.js component that wraps the RouterView.

It ensures that the RouterView is re-rendered when the route path changes by using the path as a key.