-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
ref(js): Convert a number of withApi's -> useApi's #29239
Conversation
size-limit report
|
const {api, location, selection, organization, projects} = props; | ||
const {location, selection, organization, projects} = props; | ||
|
||
const api = useApi(); |
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.
do we have a preference for having this line above the destructuring of props or below it?
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 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
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.
gotcha, makes sense
b9691f5
to
c399cd8
Compare
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.
good stufff
No description provided.