Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

withAuthenticatedUser: use react-router-dom hooks & add test#63906

Merged
sqs merged 1 commit into
mainfrom
sqs/with-auth-user
Jul 18, 2024
Merged

withAuthenticatedUser: use react-router-dom hooks & add test#63906
sqs merged 1 commit into
mainfrom
sqs/with-auth-user

Conversation

@sqs

@sqs sqs commented Jul 18, 2024

Copy link
Copy Markdown
Member

This improves the typings to remove some inscrutable inferred types and some weird type errors if you didn't use React.PropsWithChildren. Also refactors the code and exposes a new component AuthenticatedUserOnly that's simpler and can be used when you don't need to do prop propagation of authenticatedUser.

Test plan

CI

@sqs sqs requested a review from a team July 18, 2024 10:22
@cla-bot cla-bot Bot added the cla-signed label Jul 18, 2024
This improves the typings to remove some inscrutable inferred types and some weird type errors if you didn't use React.PropsWithChildren.
@sqs sqs force-pushed the sqs/with-auth-user branch from 9d19021 to 2340022 Compare July 18, 2024 10:25
@sqs sqs merged commit f657f99 into main Jul 18, 2024
@sqs sqs deleted the sqs/with-auth-user branch July 18, 2024 19:30
@camdencheek

camdencheek commented Jul 18, 2024

Copy link
Copy Markdown
Member

LGTM. Always happy to have more legible types

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants