-
Notifications
You must be signed in to change notification settings - Fork 5.5k
refactor: Convert router components from class to ES6 function components #25666
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
yhwang
merged 17 commits into
prestodb:master
from
cmatzenbach:function_component_conversion
Oct 25, 2025
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
3fd3cd8
Refactor ClusterHUD router component into ES6 function component
cmatzenbach b629667
Refactor PageTitle router component to ES6 function component
cmatzenbach c8c9d20
Refactor QueryList and sub-components into ES6 function components
cmatzenbach 7a5285d
Fix setState calls; add deps array to update sparkline with data
cmatzenbach 2cc3d02
Fix setState calls; fix bug with filter state getting reset
cmatzenbach 29396bc
Fix setState call
cmatzenbach 610df35
Add nullish coalescing operator check
cmatzenbach 294f6e4
Refactor func, destructure props refs, remove unused arg
cmatzenbach 39947ae
Fix flow errors - remove unused prop, allow numeric timeoutid
cmatzenbach 8b1e53f
Fix flow errors
cmatzenbach af25cc6
Add back in check, needed for running queries
cmatzenbach 40bc0fc
Fix state reference
cmatzenbach e6f3164
Remove unnecessary logic
cmatzenbach 13c8764
Prefer destructuring
cmatzenbach e0cfe1e
Remove unnecessary logic controlling polling cycle
cmatzenbach 3d59ec9
Refactor sortAndLimitQueries to avoid argument mutation
cmatzenbach 3e76ab2
Merge branch 'master' into function_component_conversion
cmatzenbach File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.