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