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

后端 未结 0 1427
醉酒成梦
醉酒成梦 2021-02-15 04:34

I have the following code snippet:

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


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