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

ref(js): Rewrite Sidebar as a functional component #29278

Conversation

evanpurkhiser
Copy link
Member

Turns out this didn't have a lot of state, but had a lot of gross componentDidMount / componentDidUpdate kludges that could be represented as useEffects much nicer.

@evanpurkhiser evanpurkhiser requested a review from a team as a code owner October 13, 2021 07:24
@evanpurkhiser evanpurkhiser requested review from a team and removed request for a team October 13, 2021 07:24

// TODO(billy): We should consider moving this into a component
Copy link
Member Author

Choose a reason for hiding this comment

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

or even better into a hook 😏

@github-actions
Copy link
Contributor

size-limit report

Path Base Size (8a46563) Current Size Change
src/sentry/static/sentry/dist/entrypoints/app.js 52.83 KB 52.83 KB +0.01% 🔺
src/sentry/static/sentry/dist/entrypoints/sentry.css 70.9 KB 70.9 KB 0%

Copy link
Member

@matejminar matejminar left a comment

Choose a reason for hiding this comment

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

Tried locally, looks good to me.

@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/ref-js-rewrite-sidebar-as-a-functional-component branch from 5ea8ea8 to 5969a4e Compare October 14, 2021 21:42
@evanpurkhiser evanpurkhiser merged commit cfbed78 into master Oct 14, 2021
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/ref-js-rewrite-sidebar-as-a-functional-component branch October 14, 2021 23:47
@github-actions github-actions bot locked and limited conversation to collaborators Oct 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants