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,7 +37,8 @@ function App() {
"Space-Banane (2022-2024)", "Space-Banane (2022-2024)",
]; ];
const rotatingMessages = [ const rotatingMessages = useMemo(
() => [
"Yelling at Claude", "Yelling at Claude",
"Shipping bugs", "Shipping bugs",
"Compiling typescript files... Please wait.", "Compiling typescript files... Please wait.",
@@ -49,8 +50,10 @@ function App() {
"Fighting with go modules, i lost", "Fighting with go modules, i lost",
"Nuking Python for the 50th time, it's winning", "Nuking Python for the 50th time, it's winning",
"Why is uv so cool?", "Why is uv so cool?",
"Pulling 20-ish GB of node modules, see you next year" "Pulling 20-ish GB of node modules, see you next year",
]; ],
[],
);
const characters = const characters =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()-_=+[]{}|;:',.<>?/`~" + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()-_=+[]{}|;:',.<>?/`~" +