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

experimental; pub sub metrics; dynamic poll interval #11

Merged
merged 4 commits into from
Nov 17, 2023

Conversation

vird
Copy link
Collaborator

@vird vird commented Nov 16, 2023

No description provided.

@vird vird requested a review from hlolli November 16, 2023 22:11
@@ -20,7 +15,7 @@ export default function DataRelatedChart({
width: "2%",
}}
>
<TopArrow value={dataPacked} color="#7BF05E" />
{typeof dataPacked === "number" && <TopArrow value={dataPacked} color="#7BF05E" />}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Maybe it's simplier
{dataPacked != null && }
Both checks for null and undefined

Copy link
Contributor

Choose a reason for hiding this comment

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

that is indeed a clever trick to catch both, I didn't know it was possible. But since many years, I've avoided the use of == and != in favor of === and !==, I believe eslint will also give an error if you use the the older form, but I guess there are some gems that we lose by always using === / !==. (e.g. > "0" == 0 is true)

@vird
Copy link
Collaborator Author

vird commented Nov 17, 2023

About extra changes: LGTM

@hlolli hlolli merged commit f0cc4a1 into master Nov 17, 2023
2 checks passed
@hlolli hlolli deleted the feat/pub_sub_metrics branch November 17, 2023 14:06
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.

2 participants