admin管理员组文章数量:1026062
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.
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.
本文标签: reactjsRequest status changed with tab changeStack Overflow
版权声明:本文标题:reactjs - Request status changed with tab change - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745634112a2160339.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论