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

后端 未结 0 2027
忘掉有多难
忘掉有多难 2021-02-15 04:44

I have the following code snippet:

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


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