Skip to content
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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

chore: remove lint warnings #1272

wants to merge 8 commits into from

Conversation

linnall
Copy link
Collaborator

@linnall linnall commented Jan 10, 2025

Pull Request Checklist


PR-Codex overview

This PR focuses on improving the MagicLinkAuthScreen component by optimizing the handling of user authentication and incoming URLs using useCallback. It also updates the metro.config.js by removing unnecessary imports.

Detailed summary

  • Removed imports from metro.config.js.
  • Replaced useEffect with useCallback for handleUserAuth and handleIncomingURL functions in magic-link-auth.tsx.
  • Updated dependencies in useEffect for signer and handleIncomingURL.
  • Improved readability and performance of authentication handling.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

vercel bot commented Jan 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
aa-sdk-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 11, 2025 1:28am
aa-sdk-ui-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 11, 2025 1:28am

Copy link

graphite-app bot commented Jan 10, 2025

How to use the Graphite Merge Queue

Add 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.

@linnall linnall changed the title docs: updates usage of createSMAV2Account docs: updates usage of createSMAV2AccountClient Jan 10, 2025
@linnall linnall requested a review from avarobinson January 10, 2025 21:39
howydev
howydev previously approved these changes Jan 10, 2025
Copy link
Collaborator

@howydev howydev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@linnall linnall changed the title docs: updates usage of createSMAV2AccountClient docs: updates usage of createSMAV2AccountClient and refactors to remove lint warnings Jan 10, 2025
.then(setUser)
.catch(console.error);
};
const handleUserAuth = useCallback(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@moldy530 is this refactor okay? there were lint warnings here

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems fine to me cc @iykazrji

Copy link
Collaborator

@moldy530 moldy530 left a 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

Comment on lines -3 to -4
const { getConfig } = require("react-native-builder-bob/metro-config");
const pkg = require("../package.json");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this not used? cc @iykazrji

.then(setUser)
.catch(console.error);
};
const handleUserAuth = useCallback(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems fine to me cc @iykazrji

@linnall linnall changed the title docs: updates usage of createSMAV2AccountClient and refactors to remove lint warnings [DO NOT MERGE] docs: updates usage of createSMAV2AccountClient and refactors to remove lint warnings Jan 10, 2025
@linnall linnall changed the title [DO NOT MERGE] docs: updates usage of createSMAV2AccountClient and refactors to remove lint warnings refactor: removes lint warnings Jan 11, 2025
@linnall linnall changed the title refactor: removes lint warnings refactor: remove lint warnings Jan 11, 2025
@linnall linnall changed the title refactor: remove lint warnings chore: remove lint warnings Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants