REFACTOR http requests in frontend

This commit is contained in:
2025-07-14 23:06:27 +02:00
parent 416da3281a
commit 0fbb68fdb7
4 changed files with 138 additions and 141 deletions

View File

@@ -8,7 +8,9 @@ const MyClips = () => {
const [error, setError] = useState<null | string>(null);
useEffect(() => {
getClips(setError).then((data) => setClips(data));
getClips()
.then((data) => setClips(data))
.catch((err) => setError(err));
}, []);
return (