Skip to content
Snippets Groups Projects
Commit 7f0c795a authored by Chi Chang's avatar Chi Chang
Browse files

UE info api fetcher timer deregister callback

parent b04b76fe
No related branches found
No related tags found
No related merge requests found
......@@ -66,16 +66,22 @@ class DetailButton extends Component {
}
class UEInfo extends Component {
ueInfoFetcherTimer = null;
componentDidMount() {
UEInfoApiHelper.fetchRegisteredUE().then();
// Fetch ue info per 2 seconds
// setInterval(async () => {
// this.ueInfoFetcherTimer = setInterval(async () => {
// await UEInfoApiHelper.fetchRegisteredUE();
// }, 2000);
}
componentWillUnmount() {
// if (this.ueInfoFetcherTimer)
// clearInterval(this.ueInfoFetcherTimer);
}
cellButton(cell, row, enumObject, rowIndex) {
return (
<DetailButton cell={cell} row={row} rowIndex={rowIndex}/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment