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

Feat update token seen at #2514

Merged
merged 8 commits into from Nov 29, 2022
Merged

Feat update token seen at #2514

merged 8 commits into from Nov 29, 2022

Conversation

nunogois
Copy link
Member

@vercel
Copy link

vercel bot commented Nov 23, 2022

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

Name Status Preview Comments Updated
unleash-docs ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Nov 29, 2022 at 11:58AM (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Nov 29, 2022 at 11:58AM (UTC)

Copy link
Contributor

@gastonfournier gastonfournier left a comment

Choose a reason for hiding this comment

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

This looks great IMO, just a small question but I might be overthinking it.

src/lib/services/api-token-service.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@gastonfournier gastonfournier left a comment

Choose a reason for hiding this comment

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

This looks really good IMO

@@ -52,10 +53,16 @@ export class ApiTokenService {

private timer: NodeJS.Timeout;

private seenTimer: NodeJS.Timeout;
Copy link
Member

Choose a reason for hiding this comment

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

We could have made the precious timer in to an array, we only need to keep the reference to be able to clear them all.

Copy link
Member Author

@nunogois nunogois Nov 29, 2022

Choose a reason for hiding this comment

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

Hmm I'm not sure I understood this one, could you please clarify?
I guess they could both be inside a NodeJS.Timeout[] but if we want a single reference to each we would store them in [0] and [1] I guess? 🤔 Besides one of them is an interval and the other a timeout.
Seems like decreased readability without much to gain, so I'm probably missing something.

nunogois and others added 2 commits November 29, 2022 11:36
Co-authored-by: Ivar Conradi Østhus <ivar@getunleash.ai>
Co-authored-by: Ivar Conradi Østhus <ivar@getunleash.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants