-
Notifications
You must be signed in to change notification settings - Fork 140
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
chore: remove lint warnings #1272
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
How to use the Graphite Merge QueueAdd the label graphite-merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
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.
lgtm
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.
Oh... were the changes you made to the reference/*
files done manually?
Those files should be autogenerated, but they're not because they're under experimental. Does running yarn generate
wipe them out? my guess is yea
removed changes to docs for basic mav2 sdk due to extensive work needed to support docs under |
.then(setUser) | ||
.catch(console.error); | ||
}, | ||
[signer] |
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.
React Hook useCallback has an unnecessary dependency: 'signer'. Either exclude it or remove the dependency array. Outer scope values like 'signer' aren't valid dependencies because mutating them doesn't re-render the component.
|
||
useEffect(() => { | ||
// get the user if already logged in | ||
signer.getAuthDetails().then(setUser); | ||
}, []); | ||
}, [signer]); |
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.
React Hook useEffect has an unnecessary dependency: 'signer'. Either exclude it or remove the dependency array. Outer scope values like 'signer' aren't valid dependencies because mutating them doesn't re-render the component.
Pull Request Checklist
yarn test
)site
folder, and guidelines for updating/adding docs can be found in the contribution guide)feat!: breaking change
)yarn lint:check
) and fix any issues? (yarn lint:write
)PR-Codex overview
This PR focuses on refactoring the
handleUserAuth
andhandleIncomingURL
functions in themagic-link-auth.tsx
file to utilizeuseCallback
, improving performance by memoizing these functions.Detailed summary
handleUserAuth
to useuseCallback
withsigner
as a dependency.handleIncomingURL
to useuseCallback
withhandleUserAuth
as a dependency.handleIncomingURL
function.