You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
There are a lot of places where window.location.reload has been used along with the setTimeout function. Using window.location.reload in a single page application is a not a good thing. It creates interruptions in the flow of the single-page application, leading to a less-than-optimal user experience. These are some of the loses of using this Loss of State:
Reloading the entire page causes the loss of the current state of the SPA. This can be frustrating for users, especially if they've interacted with the application and expect their current state to persist.
Performance Impact:
Reloading the entire page is resource-intensive. It requires fetching and rendering all the assets again, which can result in slower performance compared to updating only the necessary parts of the page in an SPA.
User Experience:
SPA architecture aims to provide a smoother and more responsive user experience by avoiding full-page reloads. Reloading the entire page contradicts this principle and can make the application feel less dynamic.
Network Usage:
A full-page reload involves re-fetching all the resources from the server, even if they haven't changed. This unnecessary network usage can impact load times and increase server load.
Interrupted User Flow:
Page reloads can interrupt the user's flow, causing them to lose context or forcing them to wait for the entire page to load again. This interrupts the seamless experience that SPAs aim to provide.
currently to update state in talawa admin window.location is used. Along with that a javascript function setTimeout is used with it. setTimeout is creates a side effect and should be avoided to use it without useEffect hook.
Page reload can be avoided with the help of the refetch() function that we use in graphql. It is the best method to remove all the reloading issue in the application and making it faster and smooth to use.
Expected behavior
The application should maintain a smooth and seamless user experience without unnecessary page reloads in a single-page application.
Actual behavior
Page reload has been used in the application in a lot of places unnecessarily.
Screenshots
If applicable, add screenshots or screen recordings to demonstrate the issue.
Additional details
Include any additional context or information that may be relevant to understanding and addressing the problem.
Potential internship candidates
Please note the information about applying for a Palisadoes Foundation internship in issue #359 if you are interested in contributing to the project.
The text was updated successfully, but these errors were encountered:
@skbhagat0502 Page reloads are required as we need to populate the data from from the database after creating it. This is not any bug as such. I'm closing this for now, may be we can work on it later.
Describe the bug
There are a lot of places where window.location.reload has been used along with the setTimeout function. Using window.location.reload in a single page application is a not a good thing. It creates interruptions in the flow of the single-page application, leading to a less-than-optimal user experience. These are some of the loses of using this
Loss of State:
Reloading the entire page causes the loss of the current state of the SPA. This can be frustrating for users, especially if they've interacted with the application and expect their current state to persist.
Performance Impact:
Reloading the entire page is resource-intensive. It requires fetching and rendering all the assets again, which can result in slower performance compared to updating only the necessary parts of the page in an SPA.
User Experience:
SPA architecture aims to provide a smoother and more responsive user experience by avoiding full-page reloads. Reloading the entire page contradicts this principle and can make the application feel less dynamic.
Network Usage:
A full-page reload involves re-fetching all the resources from the server, even if they haven't changed. This unnecessary network usage can impact load times and increase server load.
Interrupted User Flow:
Page reloads can interrupt the user's flow, causing them to lose context or forcing them to wait for the entire page to load again. This interrupts the seamless experience that SPAs aim to provide.
currently to update state in talawa admin window.location is used. Along with that a javascript function setTimeout is used with it. setTimeout is creates a side effect and should be avoided to use it without useEffect hook.
Page reload can be avoided with the help of the refetch() function that we use in graphql. It is the best method to remove all the reloading issue in the application and making it faster and smooth to use.
Expected behavior
The application should maintain a smooth and seamless user experience without unnecessary page reloads in a single-page application.
Actual behavior
Page reload has been used in the application in a lot of places unnecessarily.
Screenshots
If applicable, add screenshots or screen recordings to demonstrate the issue.
Additional details
Include any additional context or information that may be relevant to understanding and addressing the problem.
Potential internship candidates
Please note the information about applying for a Palisadoes Foundation internship in issue #359 if you are interested in contributing to the project.
The text was updated successfully, but these errors were encountered: