-
-
Notifications
You must be signed in to change notification settings - Fork 414
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
[bug] flag rendering doesn't update upon location change #3985
Comments
thanks for posting! |
Hi @L4ZZA, I took a look at this bug and I think it's at least partially a UX issue. The preview is being displayed in real time when you select a location. You don't have to click the link to see the preview, the link is the preview. It's confusing because the app uses a Username component to show the preview and that component always renders as a link to your profile. So when you click you are taken to your profile which has your old location (since you haven't saved the form yet). I hope that makes sense. I wasn't able to test whether your flag/location on comments gets updated but I did see that research modules were. I'm not exactly sure what the right behavior is here... keep the location what it was when you commented or update it to your current location. Anyone have input? |
Any UI issue could be fixed now. |
@mariojsnunes I think the issue is that the Username component always renders as a link to the profile. Should we make a new component that doesn't link for the sake of this preview feature? |
hey @ebradbury I have not looked at the code, but to me it feels like the location at which you register the account the first time is a different property/variable than the one use in the preview UI in the settings page. It seems to me like the two things are not connected at all |
@mariojsnunes cool! keep me posted on when that one is complete then and I'll check again :) thanks guys! |
Describe the bug
Not all the flags are updated according to the location settings. It seems like the first one you choose upon account creation is left cached on the user object on the comments and on the profile details page.
To Reproduce
Expected behaviour
all the rendered flags should match the current/latest "Location" setting
Screenshots
Additional context
Could it be related to this? #3131
The text was updated successfully, but these errors were encountered: