-
-
Notifications
You must be signed in to change notification settings - Fork 2
Game #276
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
base: main
Are you sure you want to change the base?
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Co-authored-by: Copilot <[email protected]>
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.
Pull Request Overview
Copilot reviewed 282 out of 372 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
packages/vite/src/features/notifications-provider.tsx:1
- The
notifyfunction's dependency array is empty but it uses thedismissfunction internally. Sincedismissis no longer memoized, this could lead to stale closures or the dependency should includedismiss.
import { isNot } from 'fmrs';
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| const dismiss = (notification: WithKey<Notification>): void => { | ||
| setNotifications(filter(isNot<WithKey<Notification>>(notification))); | ||
| if (typeof notification.onDismiss === 'function') { | ||
| notification.onDismiss(); | ||
| } | ||
| }; |
Copilot
AI
Nov 2, 2025
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.
The dismiss function is no longer wrapped in useEffectEvent, which means it will be recreated on every render. This could cause unnecessary re-renders in child components that depend on this function.
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.
Pull Request Overview
Copilot reviewed 282 out of 431 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Pull Request Overview
Copilot reviewed 282 out of 455 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Pull Request Overview
Copilot reviewed 282 out of 456 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.