-
Notifications
You must be signed in to change notification settings - Fork 31
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
Update hooks args and return values to make them more readable and add wagmi links #40
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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've just pushed the Parameter tables for Haven't modified In this case I haven't add a "Default Value" column, adding the info in Description field for those parameters with default value. If you prefer to have it like in Components, let me know and I'll add it 🙌. |
Tysm @Pabl0cks !!
Umm just to be consistent added them at 048b739 😅 also added some references to wagmi/viem docs I think it almost looking perfect added a couple of comments and a small NITPICK would be : changing "Parameters" h2 to "Configurations" since the hooks actually accept one object as parameter similar to what wagmi docs does and makes sense to me 🙌. For And also maybe mentioning about |
…return values to Configuration
TYSM @technophile-04 for your help on this PR ♥ |
This is looking great! Left a tiny thing, but this looks good for a merge. We can iterate later :) Thanks @Pabl0cks and @technophile-04 |
Cool! Thanks for the review! I'll merge it then. If you see something wrong in the updated TYSM! 🙌 |
This is a proposal to add more readability to the args and return values from
useScaffoldContractRead
,useScaffoldContractWrite
anduseScaffoldEventHistory
hooks.Also adding wagmi links to
useScaffoldContractRead
,useScaffoldContractWrite
anduseScaffoldEventSubscriber
so our users can check configuration and types.If you feel
h2
"Parameters" is not needed in some (or all) of them, we can delete it. Also was not very sure on how to add the wagmi reference foruseScaffoldEventSubscriber
, so just added a small sentence mentioning it.Closes #39