fix: address early loading state resolution
fix: address an issue with the project loader concluding early
switching between projects showed the new project info with the
list of old project experiments due to how we stop the loader
@@ -152,8 +152,6 @@ const ProjectDetails: React.FC = () => {
setPageError(undefined);
} catch (e) {
if (!pageError) setPageError(e as Error);
- } finally {
- setIsLoading(false);
}
}, [ canceler.signal, id, pageError ]);
@@ -316,7 +314,6 @@ const ProjectDetails: React.FC = () => {
publicMessage: 'Unable to save experiment description.',
silent: false,
});
- setIsLoading(false);
return e as Error;
}
}, [ ]);
@@ -768,8 +765,8 @@ const ProjectDetails: React.FC = () => {
* filters, pagination, search and sorter.
*/
useEffect(() => {
- fetchExperiments();
setIsLoading(true);
+ fetchExperiments();
}, [
fetchExperiments,
settings.archived,
