reactjs - Request status changed with tab change - Stack Overflow

I have a react app (a CMS panel) in which there is a clear cache button. pressing the button will trigg

I have a react app (a CMS panel) in which there is a clear cache button. pressing the button will trigger a request to the api of this panel and then the api handles the clearing of cache in the application.

The problem happens only when my client presses the button in the production build, they get a "ERR_NETWORK" after about 30 seconds and the request fails (the request itself is never received by api and the preflight gets 204.

We discovered that if they open a new tab in the browser right after clicking the button, the request will success in the background when you go the page and the cache is indeed cleared.

what could be causing the issue? What does this have to do with tabs.

they are using the latest version of firefox on windows 11.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745634114a4637284.html

相关推荐

  • reactjs - Request status changed with tab change - Stack Overflow

    I have a react app (a CMS panel) in which there is a clear cache button. pressing the button will trigg

    3小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信