We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0353997 commit ebea9a7Copy full SHA for ebea9a7
src/Router/utils/router.js
@@ -307,10 +307,11 @@ export const getComponent = route => {
307
return null
308
}
309
310
-// repace the current with boot instance
+// delete existing route instance from memory
311
export const deleteCurrentInstance = route => {
312
- if(bootcomponents.has(route)){
313
- components.set(route, bootcomponents.get(route))
+ if (components.has(route) && pagesHost.getIndex(components.get(route)) !== -1) {
+ pagesHost.remove(components.get(route))
314
+ storeComponent(route, components.get(route)._routedType || components.get(route).constructor)
315
316
317
0 commit comments