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

Re-use fetchAccountIds on all necessary places #139

Merged
merged 2 commits into from Jan 8, 2024

Conversation

Pessina
Copy link
Contributor

@Pessina Pessina commented Jan 2, 2024

No description provided.

Copy link

vercel bot commented Jan 2, 2024

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

Name Status Preview Updated (UTC)
fast-auth-signer ✅ Ready (Inspect) Visit Preview Jan 2, 2024 11:34pm

@Pessina Pessina requested a review from hcho112 January 3, 2024 01:28
hasRight?: boolean;
isError?: boolean;
isSuccess?: boolean;
$hasRight?: boolean;
Copy link
Collaborator

Choose a reason for hiding this comment

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

is having dollar sign is necessary here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was getting errors/warnings on the console telling me that hasRight, isSuccess... are being passed to the DOM and doesn't exist there.

Then I checked the docs of styled components and looks like they also do it there: https://styled-components.com/docs/basics#adapting-based-on-props

But if you know a better way to do that we can try it too :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Based on the look, this component is being used on /signin endpoint right? I don't see the error/warning on console.log. Would you mind redirecting me where you found those errors/warnings?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Screenshot 2024-01-06 at 7 37 07 PM

U are not getting this error on your console? If I use the $ the console stops complaining

I'm using Chrome - Version 120.0.6099.199 (Official Build) (arm64)

Copy link
Collaborator

Choose a reason for hiding this comment

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

eh right, I was able to replicate it. I normally uses this repo along with near-discovery and warnings were happening within iframe..

In terms of actual problem, we actually had two approaches,

  1. using full lower case, eg, hasright
  2. using $ in front eg. $hasRight

Since styled component also recommends 2, I think it's LGTM.

Copy link
Collaborator

@hcho112 hcho112 left a comment

Choose a reason for hiding this comment

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

LGTM

@Pessina Pessina merged commit aaa70f4 into main Jan 8, 2024
8 checks passed
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.

None yet

2 participants