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
Currently, the code may not handle the loading state appropriately. When the data is being fetched, it's ideal to inform the user that loading is in progress. Consider using the isLoading property to detect when data is being fetched and display a loading indicator during that time.
Update the code to handle the loading state:
+import LoadingSpinner from "../components/LoadingSpinner"; // Ensure you have a LoadingSpinner component
// TODO: add loading screen on content load
-const statusToUse = isApplicationLoaded ? application?.status : null;-return statusToUse ? stateMap[statusToUse] : null;++if (isLoading) {+ return <LoadingSpinner />;+}++const statusToUse = application?.status;+return statusToUse ? stateMap[statusToUse] : null;
Committable suggestion was skipped due to low confidence.
Currently, the code may not handle the loading state appropriately. When the data is being fetched, it's ideal to inform the user that loading is in progress. Consider using the
isLoading
property to detect when data is being fetched and display a loading indicator during that time.Update the code to handle the loading state:
Originally posted by @coderabbitai[bot] in #191 (comment)
The text was updated successfully, but these errors were encountered: