-
Notifications
You must be signed in to change notification settings - Fork 1
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
The rec area seems to reload every time focus is changed #125
Comments
Seems to work fine now. So closing |
Actually still doing this. Just switch back-and-forth to the browser tab to reproduce |
Yeah I see same thing. I will prioritize this. |
Actually, this is a broader problem. I also see it my profile page: |
Actually, this is a feature of the data fetching library not a bug. This is called refreshing the stale data. There's a case can explain why this mechanism is useful. Let's say you open two recent tabs in your browser (no matter unconsciously or deliberately). You made a rec in tab 1. And then go to tab 2. If the Screen.Recording.2024-08-27.at.3.39.20.PM.movIf we disable this behavior (set Screen.Recording.2024-08-27.at.3.41.29.PM.mov |
This is a feature of some major data fetching library: |
While I think we should retain the default refreshing behavior, we can actually disable the refreshing at the profile page if you want since, on that page, the data fetching only involves READ operation. The edge case I mentioned above won't happen. And even if multiple tabs aren't in sync, that doesn't really matter and hurts too much (users need to manually refresh the page). |
This makes a lot of sense. Let's disable this for readonly pages, but keep it for input pages. This probably happens more seamlessly in other websites though. Right? I am worried about the logic for the recommendation entry panel area though. It's really an edge case, but I could be in the entry page in two tabs (after pressing "recommend a paper") and then submit two recs. I don't know what this will cause. Didn't try it. |
This area seems to refresh every time I switch back from another. Or at least almost every time. It's a bit odd.
The text was updated successfully, but these errors were encountered: