Task #1157
closed
Long running task detail and clearInterval
Added by Ondřej Kopr almost 5 years ago.
Updated almost 5 years ago.
Description
Methdo componentWillUnmount in component LongRunningTask clreaing interval but the method isn't called when window is refresh or in go back history behavior.
Please try find solution and repair this bug.
- Status changed from New to In Progress
- Status changed from In Progress to Needs feedback
- Assignee changed from Ondřej Kopr to Radek Tomiška
- Priority changed from High to Normal
- % Done changed from 0 to 70
I found the main problem: I clear interval using clearInterval with undefined and state value, this beahvior brokes clearing interval. I add method for safely clear interval and value is stored in class not state. Now works clearing correctly.
I check these scenarios:
- go back in history using browser button,
- replace (paste) url in browser.
Please Radek could you check this behavior.
- Status changed from Needs feedback to Closed
- Assignee changed from Radek Tomiška to Ondřej Kopr
- % Done changed from 70 to 100
- Related to Task #1158: Long running task: use form definition for configuration added
Also available in: Atom
PDF