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
Problem Statement:
Currently, the application uses window.location.href for navigation in the PatientHistory.js component, which causes a hard refresh (full page reload). This approach is inefficient and disrupts the Single Page Application (SPA) behavior, leading to a poor user experience.
Location to Update:
File: OpenELIS-Global-2/frontend/src/components/patient/PatientHistory.js
After redirection, the application uses the component: frontend/src/components/patient/resultsViewer/results-viewer.tsx
Proposed Solution:
Replace window.location.href with the useNavigate() hook provided by React Router v6. This will enable client-side navigation without triggering a hard refresh.
Advantages:
=>Avoid Hard Refresh: The application will no longer reload the entire page during navigation, improving performance and user experience.
=>SPA Behavior: Maintains the SPA architecture, ensuring a seamless and faster navigation experience.
=>No Side Effects: This change is isolated and does not impact other components or functionality.
The text was updated successfully, but these errors were encountered:
Problem Statement:
Currently, the application uses window.location.href for navigation in the PatientHistory.js component, which causes a hard refresh (full page reload). This approach is inefficient and disrupts the Single Page Application (SPA) behavior, leading to a poor user experience.
Location to Update:
File: OpenELIS-Global-2/frontend/src/components/patient/PatientHistory.js
After redirection, the application uses the component: frontend/src/components/patient/resultsViewer/results-viewer.tsx
Proposed Solution:
Replace window.location.href with the useNavigate() hook provided by React Router v6. This will enable client-side navigation without triggering a hard refresh.
Advantages:
=>Avoid Hard Refresh: The application will no longer reload the entire page during navigation, improving performance and user experience.
=>SPA Behavior: Maintains the SPA architecture, ensuring a seamless and faster navigation experience.
=>No Side Effects: This change is isolated and does not impact other components or functionality.
The text was updated successfully, but these errors were encountered: