MCPcopy Index your code
hub / github.com/keepfool/vue-tutorials / reuse

Function reuse

06.Router/basic/js/vue-router.js:1269–1275  ·  view source on GitHub ↗

* Reuse a view, just reload data if necessary. * * @param {Directive} view * @param {Transition} transition

(view, transition)

Source from the content-addressed store, hash-verified

1267 */
1268
1269 function reuse(view, transition) {
1270 var component = view.childVM;
1271 var dataHook = getRouteConfig(component, 'data');
1272 if (dataHook) {
1273 loadData(component, transition, dataHook);
1274 }
1275 }
1276
1277 /**
1278 * Asynchronously load and apply data to component.

Callers 1

vue-router.jsFile · 0.85

Calls 2

getRouteConfigFunction · 0.85
loadDataFunction · 0.85

Tested by

no test coverage detected