Loaded state save

This commit is contained in:
2025-07-04 22:17:21 +02:00
parent c7e9bff5e2
commit 57186d44b9
7 changed files with 17 additions and 7 deletions
@@ -1,4 +1,4 @@
import { FC, useState } from 'react';
import { FC, useEffect, useState } from 'react';
import { GSX_SERVICE_CALLED, GSX_SERVICE_FINISHED } from '../../constants';
import { LoadingState } from '../../types/general';
import { WASMDataPax } from '../../types/WASMData';
@@ -84,6 +84,10 @@ const Pax: FC<PaxProps> = ({ WASMData, username }) => {
];
};
useEffect(() => {
setLoadingState(WASMData.loaded ? 'loaded' : 'preview');
}, [WASMData.loaded]);
return (
<>
<Profile