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): Convert a number of withApi's -> useApi's #29239

Conversation

evanpurkhiser
Copy link
Member

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 11, 2021

size-limit report

Path Base Size (5aedd9f) Current Size Change
src/sentry/static/sentry/dist/entrypoints/app.js 52.7 KB 52.69 KB -0.02% 🔽
src/sentry/static/sentry/dist/entrypoints/sentry.css 70.9 KB 70.9 KB 0%

const {api, location, selection, organization, projects} = props;
const {location, selection, organization, projects} = props;

const api = useApi();
Copy link
Contributor

Choose a reason for hiding this comment

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

do we have a preference for having this line above the destructuring of props or below it?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah I noticed this one. Probably above, though it doesn't really matter, as long as it's not before an early return, which would be a problem

Copy link
Contributor

Choose a reason for hiding this comment

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

gotcha, makes sense

Copy link
Contributor

@davidenwang davidenwang left a comment

Choose a reason for hiding this comment

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

good stufff

@evanpurkhiser evanpurkhiser merged commit 58b31e1 into master Oct 11, 2021
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/ref-js-convert-a-number-of-withapi-s-useapi-s branch October 11, 2021 23:28
@github-actions github-actions bot locked and limited conversation to collaborators Oct 27, 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