-
Notifications
You must be signed in to change notification settings - Fork 643
Desktop loading indicator #13182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Desktop loading indicator #13182
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
💡 Enable Vercel Agent with $100 free credit for automated AI reviews |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No files reviewed, 2 comments
}, 1000) | ||
|
||
return () => clearInterval(interval) | ||
}, [rendered, currentMessageIndex]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: currentMessageIndex
in dependencies causes the effect to re-run every time the message changes, recreating the interval unnecessarily. Remove it from the dependency array.
}, [rendered, currentMessageIndex]) | |
}, [rendered]) |
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/components/Desktop/index.tsx
Line: 325:325
Comment:
**logic:** `currentMessageIndex` in dependencies causes the effect to re-run every time the message changes, recreating the interval unnecessarily. Remove it from the dependency array.
```suggestion
}, [rendered])
```
How can I resolve this? If you propose a fix, please make it concise.
import { DebugContainerQuery } from 'components/DebugContainerQuery' | ||
import HedgeHogModeEmbed from 'components/HedgehogMode' | ||
import ReactConfetti from 'react-confetti' | ||
import ProgressBar from 'components/ProgressBar' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: unused import
import ProgressBar from 'components/ProgressBar' |
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/components/Desktop/index.tsx
Line: 19:19
Comment:
**style:** unused import
```suggestion
```
How can I resolve this? If you propose a fix, please make it concise.
@smallbrownbike This now has a cool rotating list of messages, but because even that can get loaded to late, it also injects an initial loading message into Gatsby stuff which does show reliably. Change whatever you want and merge at will. |
This reverts commit 80fffc1.
Adds a loading state while the site is... loading.