-
Notifications
You must be signed in to change notification settings - Fork 26
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
Action button bug fixes #339
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
12b96c8
to
75500a2
Compare
This is a temporary solution, we'll be switching to Apollo 3 and mutation hooks
75500a2
to
17c39b7
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.
Just a question on how the code handles getActiveCode()
possibly returning undefined then LGTM
const { isSavingCode } = useProject(); | ||
const sendingTransaction = false; | ||
|
||
const code = getActiveCode()[0].trim(); |
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.
will this fatal if getActiveCode() returns 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.
getActiveCode is typed as a [string, number] tuple so it seems like that shouldn't happen. However, since typescript assumes accessing an array always returns a value, it would technically be possible. I updated the default values, and we should consider setting noUncheckedIndexedAccess: true in the future
This is a temporary solution, we'll be switching to Apollo 3 and mutation hooks
For contributor use:
Files changed
in the Github PR explorer