Skip to content

Commit 5990758

Browse files
committed
handle waitForData + keep-alive
1 parent d3467cb commit 5990758

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/pipeline.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,10 @@ export function activate (view, transition, depth, cb, reuse) {
184184

185185
// actually insert the component and trigger transition
186186
let insert = () => {
187+
if (reuse) {
188+
cb && cb()
189+
return
190+
}
187191
let router = transition.router
188192
if (router._rendered || router._transitionOnLoad) {
189193
view.transition(component)
@@ -216,11 +220,7 @@ export function activate (view, transition, depth, cb, reuse) {
216220
if (dataHook) {
217221
loadData(component, transition, dataHook)
218222
}
219-
if (!reuse) {
220-
insert()
221-
} else {
222-
cb && cb()
223-
}
223+
insert()
224224
}
225225
}
226226

0 commit comments

Comments
 (0)