1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 06:01:17 -04:00

lengthen cache-control headers

This commit is contained in:
2022-05-02 10:29:01 -04:00
parent d8d7d7d775
commit 64303400a4
10 changed files with 36 additions and 27 deletions

View File

@@ -66,7 +66,9 @@ const CopyButton = forwardRef(function CopyButton(
}, timeout);
// cancel timeout to avoid memory leaks if unmounted in the middle of this
return () => clearTimeout(reset);
return () => {
clearTimeout(reset);
};
}, [timeout, copied]);
return (