DanielAuerX commented on code in PR #1335:
URL: https://github.com/apache/answer/pull/1335#discussion_r2097259369
##########
ui/src/pages/Users/Settings/Profile/index.tsx:
##########
@@ -241,10 +241,7 @@ const Index: React.FC = () => {
modifyUserInfo(params)
.then(() => {
- update({
- ...user,
- ...params,
- });
+ getLoggedUserInfo().then(update);
Review Comment:
> I tested it and found that this modification still cannot eliminate
browser cache unless the entire application is reloaded using `window.reload`,
however, using this method will affect the user's experience.
@shuashuai Just for clarification, this change is not supposed to eliminate
browser cache. Its supposed to be updating the user information, so an old
avatar file is not being requested after it has been removed from the user
information. This is not new behavior. However, previously requesting an old
resource was successful, because files were not being deleted.
Do you have a better solution? I can also just remove the commit, if you
think this is acceptable.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]