Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

重新设置initialState之后使用refresh刷新无法重新渲染 #48324

Closed
KongAKun opened this issue Apr 7, 2024 · 1 comment
Closed

Comments

@KongAKun
Copy link

KongAKun commented Apr 7, 2024

Reproduction link

Edit on CodeSandbox

Steps to reproduce

refresh之后,执行getInitialState的时候。似乎是因为initialState里的头像的url没有变化,没有重新发起请求,但是url对应的资源是更新了的,需要重新请求

What is expected?

refresh之后,重新发起请求,或许到最新的数据。

What is actually happening?

根据url,再次发起请求

Environment Info
antd undefined
React react
System Windows 11 专业版 23H2
Browser 123.0.6312.106(正式版本) (64 位)
@crazyair
Copy link
Member

crazyair commented Apr 8, 2024

提问错了吧?应该提到 umi 那

@crazyair crazyair closed this as completed Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants