-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed
Description
Version
2.7.0
Reproduction link
https://github.com/vuejs/vue-hackernews-2.0
Steps to reproduce
- git clone https://github.com/vuejs/vue-hackernews-2.0
- npm i
- add
beforeRouteEnter
event tosrc/views/CreateListView.js
:
beforeRouteEnter(to, from, next) {
next((vm) => {
console.log('before enter user view');
});
}
- add
console.log
tovue-router.common.js
line2058
:
function poll (
cb, // somehow flow cannot infer this is a function
instances,
key,
isValid
) {
if (instances[key]) {
cb(instances[key]);
} else if (isValid()) {
setTimeout(function () {
console.log('vue-router poll');
poll(cb, instances, key, isValid);
}, 16);
}
}
- npm run dev
- open
http://127.0.0.1:8080/
What is expected?
memory can be gc collected
What is actually happening?
memory and cpu grow up, and it keeps printing vue-router poll
AndruxaSazonov, tangyue0924, xsbchen, imingyu, yefeng2016 and 3 more
Metadata
Metadata
Assignees
Labels
No labels