fix: wrap rotatingMessages in useMemo for performance optimization

This commit is contained in:
Space-Banane
2026-03-14 00:00:17 +01:00
parent c53d5fd693
commit e60da1905c

View File

@@ -37,20 +37,23 @@ function App() {
"Space-Banane (2022-2024)",
];
const rotatingMessages = [
"Yelling at Claude",
"Shipping bugs",
"Compiling typescript files... Please wait.",
"Waiting for CI, this might take a while...",
"No debugger attached, but I'm sure it works ?",
"Seems fine, must be a problem with your machine lol",
"Waiting for pip, this might take a lifetime...",
"Collecting Spotify hours, this might take a while...",
"Fighting with go modules, i lost",
"Nuking Python for the 50th time, it's winning",
"Why is uv so cool?",
"Pulling 20-ish GB of node modules, see you next year"
];
const rotatingMessages = useMemo(
() => [
"Yelling at Claude",
"Shipping bugs",
"Compiling typescript files... Please wait.",
"Waiting for CI, this might take a while...",
"No debugger attached, but I'm sure it works ?",
"Seems fine, must be a problem with your machine lol",
"Waiting for pip, this might take a lifetime...",
"Collecting Spotify hours, this might take a while...",
"Fighting with go modules, i lost",
"Nuking Python for the 50th time, it's winning",
"Why is uv so cool?",
"Pulling 20-ish GB of node modules, see you next year",
],
[],
);
const characters =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()-_=+[]{}|;:',.<>?/`~" +