React state not updating inside of `XMLHttpRequest.onprogess` with callback

后端 未结 0 1939
死守一世寂寞
死守一世寂寞 2021-02-15 04:42

I have the following code snippet:

private checkFile(url: string, callback: any) {
    const request = new XMLHttpRequest()         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题