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

ready为false的时候,仍然使用了缓存 #2654

Open
zhengcheng123 opened this issue Sep 27, 2024 · 0 comments
Open

ready为false的时候,仍然使用了缓存 #2654

zhengcheng123 opened this issue Sep 27, 2024 · 0 comments

Comments

@zhengcheng123
Copy link

zhengcheng123 commented Sep 27, 2024

{ ready: !!blogId, cacheKey: 'xxx-info' }
用户列表进入用户详情页面,会根据返回的用户数据中是否有blogId请求该用户的最新一条博客内容,当我打开一个有blogId的用户并正常请求到博客内容(此时有cacheKey会缓存),然后离开该详情从列表打开一个没有blogId的用户详情,发现此时由于blogId为undefined,未发起接口请求(正常的),但是仍然使用了缓存的上个用户的数据,从到导致数据展示出错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant