Skip to content

chore(site): add storybook for terminal page #12441

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

Merged
merged 8 commits into from
Mar 7, 2024

Conversation

BrunoQuaresma
Copy link
Collaborator

No description provided.

@BrunoQuaresma BrunoQuaresma requested a review from code-asher March 6, 2024 17:45
@BrunoQuaresma BrunoQuaresma self-assigned this Mar 6, 2024
Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

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

Awesome!!!


// Runs when the last event listener is added
clearTimeout(callEventsDelay);
callEventsDelay = window.setTimeout(() => {
Copy link
Member

Choose a reason for hiding this comment

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

Out of curiosity, why do we need the timeout? I think it makes sense since it allows us to make sure all the listeners are hooked up first but was there a bug with how it was before?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, the problem with the previous implementation is that it did not respect the order of the events so if the error listener was defined before it would call it first even if it was the third event in the list for example.

Copy link
Member

Choose a reason for hiding this comment

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

Ohhhhh I see! Makes sense.

Co-authored-by: Asher <ash@coder.com>
@BrunoQuaresma BrunoQuaresma enabled auto-merge (squash) March 7, 2024 14:16
@BrunoQuaresma BrunoQuaresma merged commit db02c72 into main Mar 7, 2024
@BrunoQuaresma BrunoQuaresma deleted the bq/refactor-web-term-notifications branch March 7, 2024 14:17
@github-actions github-actions bot locked and limited conversation to collaborators Mar 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants