-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
ref(tsc): convert projectGeneralSettings to FC #90458
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
Conversation
314ce13 to
2db85e6
Compare
static/app/views/settings/projectGeneralSettings/index.spec.tsx
Outdated
Show resolved
Hide resolved
| ); | ||
| }; | ||
|
|
||
| const unsubscribe = ProjectsStore.listen(onProjectsUpdate, undefined); |
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.
Can you use useLegacyStore() instead here?
| recreateRoute('', { | ||
| ...this.props, | ||
| params: { | ||
| ...this.props.params, |
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.
Looks like we lost the additional props and params - are those necessary? There might be an orgId if there is no customer domain, and this.props used to include location and routes
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.
i added back orgId into the params and also location
ref https://github.com/getsentry/frontend-tsc/issues/2