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

[Improvement] Page is loading every time even if there is no change in any component #448

Open
Vishwa-Desai opened this issue Mar 13, 2024 · 5 comments
Labels
enhancement New feature or request frontend frontend related task good first issue Good for newcomers

Comments

@Vishwa-Desai
Copy link

Description

I am not sure if its bug or not but when i was roaming around your website i felt that on projects and mates page, it is unnecessary loading page every time when i switch to another tab and come back to you website even if there no change or new data to show.

Screenshots

No response

@Vishwa-Desai Vishwa-Desai added the bug Something isn't working label Mar 13, 2024
@rohitdasu
Copy link
Owner

Hi @Vishwa-Desai Thanks for reporting the issue. We'll check it out 👍

@csagar131
Copy link
Contributor

Hi @Vishwa-Desai this is not a bug, this is because project is using SWR(stale-while-revalidate) library for data fetching and caching, so when you switch the tab and come back later, it ensures that you will get the latest and sync data for that its making an api request to fetch the fresh data when you come back...
refer this for more info : https://swr.vercel.app/docs/revalidation

@rohitdasu
Copy link
Owner

Yup that's the cause of the reload. Thanks @csagar131 for checking it 👍

@rohitdasu
Copy link
Owner

@Vishwa-Desai i hope you got the reason for the issue. We cannot remove the revalidation feature as it serves users with the latest data, but we can improve the UX by not showing the loader(which causes a flicker) when it revalidates the data. So i am replacing the bug tag from this issue with "Improvement" tag. it's open for anyone to work on this issue.

@rohitdasu rohitdasu added enhancement New feature or request good first issue Good for newcomers frontend frontend related task and removed bug Something isn't working labels Mar 14, 2024
@rohitdasu rohitdasu changed the title [BUG] Page is loading every time even if there is no change in any component [Improvement] Page is loading every time even if there is no change in any component Mar 14, 2024
@Vishwa-Desai
Copy link
Author

@rohitdasu Yes i got it, Thanks for looking into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend frontend related task good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants