-
Notifications
You must be signed in to change notification settings - Fork 17
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
Updates all npm packages Apr 2024 #973
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs rebase @devinmatte but otherwise LGTM
Okay fixed and pushed to beta |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code lgtm, thanks for doing this!
@@ -5,7 +5,8 @@ import { OverallRidershipChart } from './OverallRidershipChart'; | |||
|
|||
export const OverallRidershipChartWrapper: React.FC = () => { | |||
const ridershipData = useRidershipDataLanding(); | |||
const ridershipDataReady = !ridershipData.isLoading && !ridershipData.isError; | |||
const ridershipDataReady = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a huge deal but this seems like a bit of regression in the TS definitions of useQuery
. Presumably it used to be able to infer data
was present because those other two keys are absent, but now it can't?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it seems that they now include undefined
into the definition of the resulting data object. Which was I think technically possible before but the typescript definition didn't include it. Overall I think this is an improvement although an annoying one
Motivation
Keep us up to date with modern software
Changes
Updates all packages to the latest versions and fixes issues from changes
Testing Instructions