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

后端 未结 0 452
北恋
北恋 2021-02-15 05:03

I have the following code snippet:

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


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