fix: wrap rotatingMessages in useMemo for performance optimization
This commit is contained in:
31
src/App.tsx
31
src/App.tsx
@@ -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!@#$%^&*()-_=+[]{}|;:',.<>?/`~" +
|
||||
|
||||
Reference in New Issue
Block a user