Skip to content

Commit e4c4bc9

Browse files
authored
fix crash issue when jumping to other pages
1 parent e8a598c commit e4c4bc9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/pages/PageFour/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,12 @@ class PageFour extends React.Component {
376376
playSpeed: value
377377
})
378378
}
379-
379+
380+
componentWillUnmount(){
381+
if(this.handlerPlay) {
382+
clearInterval(this.handlerPlay);
383+
}
384+
}
380385

381386
render() {
382387
// Get all sprites

0 commit comments

Comments
 (0)